mirror of
https://github.com/zellyn/a2audit.git
synced 2024-11-15 12:08:42 +00:00
39 lines
546 B
NASM
39 lines
546 B
NASM
;;; Apple II audit routine macros.
|
|
;;; Copyright © 2016 Zellyn Hunter <zellyn@gmail.com>
|
|
|
|
!macro print {
|
|
jsr LASTSTRING
|
|
!set TEMP = *
|
|
* = LASTSTRING
|
|
jsr print
|
|
}
|
|
|
|
!macro printed {
|
|
!byte 0
|
|
!set LASTSTRING=*
|
|
* = TEMP
|
|
}
|
|
|
|
!macro prerr NUM {
|
|
ldy #>NUM
|
|
ldx #<NUM
|
|
jsr LASTSTRING
|
|
!set TEMP = *
|
|
* = LASTSTRING
|
|
jsr error
|
|
}
|
|
!macro prerred {
|
|
!byte $8D
|
|
+printed
|
|
}
|
|
|
|
;; 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
|
|
}
|