2016-12-15 01:16:55 +00:00
|
|
|
;;; Apple II audit routine macros.
|
|
|
|
;;; Copyright © 2016 Zellyn Hunter <zellyn@gmail.com>
|
|
|
|
|
|
|
|
!macro print {
|
2016-12-16 03:20:54 +00:00
|
|
|
jsr LASTSTRING
|
2016-12-15 01:16:55 +00:00
|
|
|
!set TEMP = *
|
|
|
|
* = LASTSTRING
|
2016-12-16 03:20:54 +00:00
|
|
|
jsr print
|
2016-12-15 01:16:55 +00:00
|
|
|
}
|
2016-12-16 03:20:54 +00:00
|
|
|
|
2016-12-15 01:16:55 +00:00
|
|
|
!macro printed {
|
|
|
|
!byte 0
|
|
|
|
!set LASTSTRING=*
|
|
|
|
* = TEMP
|
|
|
|
}
|
|
|
|
|
|
|
|
!macro prerr 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
|
|
|
|
}
|