Print version number at startup

https://github.com/zellyn/a2audit/issues/2
This commit is contained in:
Zellyn Hunter 2017-03-19 20:36:40 -04:00
parent 07667f3115
commit 72aa766223
2 changed files with 17 additions and 1 deletions

View File

@ -6,6 +6,10 @@
* = $6000
START = *
;; Major version number
VER_MAJOR = 1
VER_MINOR = 1
;; Zero-page locations.
SCRATCH = $1
SCRATCH2 = $2
@ -136,9 +140,21 @@ main:
jsr HOME
+print
!text "APPLE II AUDIT",$8D,$8D
!text "APPLE II AUDIT "
+printed
lda #(VER_MAJOR+'0')
jsr COUT
lda #'.'
jsr COUT
lda #VER_MINOR
jsr PRBYTE
lda #$8D
jsr COUT
lda #$8D
jsr COUT
;; Detection and reporting of model and memory.
!src "detect.asm"

Binary file not shown.