Embed tested memory size in the infotext

This commit is contained in:
s3lph 2022-02-07 10:26:52 +01:00
parent be6739b33c
commit 289266dccc
2 changed files with 20 additions and 4 deletions

View file

@ -92,7 +92,7 @@ After starting up, most of the screen will be empty.
┃ ┃ ┃ ┃
┃ ┃ ┃ ┃
┃ ┃ ┃ ┃
CBM 3001 MEMTEST, 2022 S3LPH.ME ***┃ ┃CBM 3001 MEMTEST4K , 2022 S3LPH.ME ***┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
``` ```

View file

@ -5,6 +5,22 @@
#ifndef _MEMEND #ifndef _MEMEND
#define _MEMEND $4000 #define _MEMEND $4000
#endif
#ifndef _MEMSIZE
#define _MEMSIZE "??K"
#if _MEMEND = $1000
#define _MEMSIZE "4K "
#endif
#if _MEMEND = $2000
#define _MEMSIZE "8K "
#endif
#if _MEMEND = $4000
#define _MEMSIZE "16K"
#endif
#if _MEMEND = $8000
#define _MEMSIZE "32K"
#endif
#endif #endif
scrptr = $8000 scrptr = $8000
@ -104,7 +120,7 @@ textloop:
lda infotext,Y lda infotext,Y
sta lastline,Y sta lastline,Y
iny iny
cpy #$20 cpy #$22
bne textloop bne textloop
;; set up first pass with $FF ;; set up first pass with $FF
@ -486,7 +502,7 @@ passbytes:
passchars: passchars:
.asc "FF00AA55XX0102040810204080FEFDFBF7EFDFBF7F" .asc "FF00AA55XX0102040810204080FEFDFBF7EFDFBF7F"
infotext: infotext:
.asc " CBM 3001 MEMTEST, 2022 S3LPH.ME" .asc "CBM 3001 MEMTEST", _MEMSIZE, ", 2022 S3LPH.ME"
nmiv: nmiv:
;; NMI: Show ! in status ;; NMI: Show ! in status