a2audit/audit/macros.asm

39 lines
546 B
NASM
Raw Normal View History

2016-12-15 01:16:55 +00:00
;;; Apple II audit routine macros.
;;; Copyright © 2016 Zellyn Hunter <zellyn@gmail.com>
!macro print {
jsr LASTSTRING
2016-12-15 01:16:55 +00:00
!set TEMP = *
* = LASTSTRING
jsr print
2016-12-15 01:16:55 +00:00
}
2016-12-15 01:16:55 +00:00
!macro printed {
!byte 0
!set LASTSTRING=*
* = TEMP
}
!macro prerr NUM {
2016-12-18 01:49:28 +00:00
ldy #>NUM
ldx #<NUM
2016-12-17 03:32:35 +00:00
jsr LASTSTRING
!set TEMP = *
* = LASTSTRING
jsr error
2016-12-15 01:16:55 +00:00
}
!macro prerred {
!byte $8D
+printed
}
2016-12-17 03:32:35 +00:00
;; A version of prerr that also displays the current value of A.
!macro prerra NUM {
ldy #>NUM
ldx #<NUM
jsr LASTSTRING
!set TEMP = *
* = LASTSTRING
jsr errora
}