From c8bbc5104576f69f2fcef91a473447e863a94bd3 Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Wed, 18 Sep 2024 22:26:24 -0400 Subject: [PATCH] sb: shuffle around so disk used more optimally --- games/sb/Makefile | 11 ++++++----- games/sb/NOTES | 32 ++++++++++++++++++++++++++++++++ games/sb/qload.s | 12 ++++++------ 3 files changed, 44 insertions(+), 11 deletions(-) create mode 100644 games/sb/NOTES diff --git a/games/sb/Makefile b/games/sb/Makefile index 9a165f54..902f07fc 100644 --- a/games/sb/Makefile +++ b/games/sb/Makefile @@ -21,12 +21,13 @@ sb.dsk: QBOOT QLOAD TITLE DUCK_POND ROOF ASPLODE BACK_OFF \ $(DOS33_RAW) sb.dsk 1 0 QLOAD 0 0 $(DOS33_RAW) sb.dsk 2 0 TITLE 0 0 $(DOS33_RAW) sb.dsk 5 0 DUCK_POND 0 0 - $(DOS33_RAW) sb.dsk 10 0 ROOF 0 0 - $(DOS33_RAW) sb.dsk 15 0 ASPLODE 0 0 + $(DOS33_RAW) sb.dsk 8 0 ROOF 0 0 + $(DOS33_RAW) sb.dsk 11 0 ASPLODE 0 0 # $(DOS33_RAW) sb.dsk 20 0 TARGET 0 0 - $(DOS33_RAW) sb.dsk 20 0 ./fish/FISH 0 0 - $(DOS33_RAW) sb.dsk 30 0 RAT 0 0 - $(DOS33_RAW) sb.dsk 32 0 BACK_OFF 0 0 + $(DOS33_RAW) sb.dsk 16 0 ./fish/FISH 0 0 + $(DOS33_RAW) sb.dsk 22 0 RAT 0 0 + $(DOS33_RAW) sb.dsk 24 0 BACK_OFF 0 0 + $(DOS33_RAW) sb.dsk 26 0 ../peasant_mini/cliff/CLIMB 0 0 #### diff --git a/games/sb/NOTES b/games/sb/NOTES new file mode 100644 index 00000000..dd1f6dc9 --- /dev/null +++ b/games/sb/NOTES @@ -0,0 +1,32 @@ +Disk contents + +Disk00 Map (disk has 35 tracks, each 4k in size) +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~$~~~~~~~ +T 0 = Qboot +T 1 = QLOAD 99 bytes = 1T (4096) 4k free +T 2 = TITLE 9280 bytes = 3T (12288) 3k free +T 5 = DUCK_POND 3474 bytes = 3T (12288) 9k free +T 8 = ROOF 865 bytes = 3T (12288) 11k free +T 11 = ASPLODE 17042 bytes = 5T (20480) 3k free +T 16 = FISH 23287 bytes = 6T (24576) 1k free +T 22 = RAT 7581 bytes = 2T ( 8192) 1k free +T 24 = BACK_OFF 6072 bytes = 2T ( 8192) 2k free +T 26 = CLIMB 13013 bytes = 4T (16384) 3k free + + + + +memory map + +6000 code + +A000 background + + +Code currently 16k +Need to be 8 K in order to fit bg2 at $8000 + +asplode_sound = 4.9k +graphics1 = 1.3k (would need another 1.3k for other graphic) +title = 1.4k + diff --git a/games/sb/qload.s b/games/sb/qload.s index fc35eb15..9ca98622 100644 --- a/games/sb/qload.s +++ b/games/sb/qload.s @@ -167,26 +167,26 @@ error_string: which_disk_array: .byte 1,1,1,1 ; TITLE, DUCK, ROOF, ASPLODE - .byte 1,1,1,1 ; ?, FISH, RAT, BACK_OFF + .byte 1,1,1,1 ; CLIMB, FISH, RAT, BACK_OFF load_address_array: .byte $60,$60,$60,$40 ; TITLE, DUCK, ROOF, ASPLODE - .byte $60,$40,$60,$60 ; ?, FISH, RAT, BACK_OFF + .byte $60,$40,$60,$60 ; CLIMB, FISH, RAT, BACK_OFF track_array: - .byte 2, 5,10,15 ; TITLE, DUCK, ROOF, ASPLODE - .byte 20,20,30,32 ; ?, FISH, RAT, BACK_OFF + .byte 2, 5, 8,11 ; TITLE, DUCK, ROOF, ASPLODE + .byte 26,16,22,24 ; CLIMB, FISH, RAT, BACK_OFF sector_array: .byte 0, 0, 0, 0 ; TITLE, DUCK, ROOF, ASPLODE - .byte 0, 0, 0, 0 ; ?, FISH, RAT, BACK_OFF + .byte 0, 0, 0, 0 ; CLIMB, FISH, RAT, BACK_OFF length_array: .byte 40, 16, 16, 70 ; TITLE, DUCK, ROOF, ASPLODE - .byte 32, 92, 32, 24 ; ?, FISH, RAT, BACK_OFF + .byte 64, 92, 32, 32 ; CLIMB, FISH, RAT, BACK_OFF qload_end: