Remove some debug info

This commit is contained in:
Byron Lathi
2023-08-12 19:16:46 -07:00
parent 053b0d7e3e
commit 937a04c891
2 changed files with 21 additions and 16 deletions

18
sw/bios/boot2.s Normal file
View File

@@ -0,0 +1,18 @@
.importzp sp, ptr1, ptr2, ptr3, ptr4, tmp1, tmp2, tmp3, sreg
.autoimport on
.feature string_escapes
.MACPACK generic
.segment "BOOTLOADER"
_start:
lda #<str
ldx #>str
jsr _cputs
str: .byte "This is a very long message which would otherwise"
.byte "take up a lot of space in the bootsector, where space"
.byte "is at quite a premium.", $00

View File

@@ -71,23 +71,13 @@ _main:
sta ptr2
bra @1
@2: lda #$00
@2: ldy #11
lda #$00
sta (ptr2),y
lda #<entry
ldx #>entry
jsr _cputs
lda #<name
ldx #>name
jsr pushax
clc
tya
adc ptr2
lda ptr2
pha
ldx ptr2 + 1
phx
jsr pushax
ldy #$4
jsr _cprintf
lda #<_boot2_str
ldx #>_boot2_str
jsr pushax
@@ -107,9 +97,6 @@ _main:
@end: bra @end
str: .asciiz "boot\r\n"
lfn: .asciiz "Found LFN\r\n"
entry: .asciiz "Found valid entry\r\n"
name: .asciiz "entry name: %s\r\n"
_boot2_str: .asciiz "BOOT2 BIN"
_fail: .asciiz "not bootloader\r\n"
_good: .asciiz "found bootloader!\r\n"