| 1 |
;ACME 0.97 |
| 2 |
|
| 3 |
; zp variables |
| 4 |
!addr ptr = $fb |
| 5 |
|
| 6 |
; kernal |
| 7 |
!addr k_chrout = $ffd2 |
| 8 |
|
| 9 |
; print zero-terminated string |
| 10 |
print_string_AAYY |
| 11 |
sta ptr + 1 ; store high byte of pointer |
| 12 |
lda #0 ; and clear low byte of pointer so we can use "(ptr), y" |
| 13 |
sta ptr |
| 14 |
beq + |
| 15 |
;;; |
| 16 |
--- jsr k_chrout |
| 17 |
iny |
| 18 |
bne + |
| 19 |
; fix high byte |
| 20 |
inc ptr + 1 |
| 21 |
+ lda (ptr), y |
| 22 |
bne --- |
| 23 |
rts |
| 24 |
|
| 25 |
!eof |
| 26 |
There is also a version in the c64 basic rom (strout, $ab1e), but that one |
| 27 |
stops at double quotes. |