projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Re-worked the makefiles and includes to target z80 and gbz80 as well
[fw/sdcc]
/
device
/
lib
/
z80
/
putchar.s
diff --git
a/device/lib/z80/putchar.s
b/device/lib/z80/putchar.s
index 07ebeccf4f24170d003f3dc20995dff7cb9ff6f0..df1954b77ab81991a19b78dc866c37870e32a6ed 100644
(file)
--- a/
device/lib/z80/putchar.s
+++ b/
device/lib/z80/putchar.s
@@
-1,14
+1,7
@@
.area _CODE
_putchar::
- push ix
- ld ix,#0
- add ix,sp
+ ld a,#1
+ rst 0x08
- ld l,4(ix)
- ld a,#0
- out (0xff),a
-
- pop ix
- ret
-
+ ret