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
#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
scrptr = $8000
@ -104,7 +120,7 @@ textloop:
lda infotext,Y
sta lastline,Y
iny
cpy #$20
cpy #$22
bne textloop
;; set up first pass with $FF
@ -486,7 +502,7 @@ passbytes:
passchars:
.asc "FF00AA55XX0102040810204080FEFDFBF7EFDFBF7F"
infotext:
.asc " CBM 3001 MEMTEST, 2022 S3LPH.ME"
.asc "CBM 3001 MEMTEST", _MEMSIZE, ", 2022 S3LPH.ME"
nmiv:
;; NMI: Show ! in status