Remove some debug info
This commit is contained in:
18
sw/bios/boot2.s
Normal file
18
sw/bios/boot2.s
Normal 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
|
||||||
@@ -71,23 +71,13 @@ _main:
|
|||||||
sta ptr2
|
sta ptr2
|
||||||
bra @1
|
bra @1
|
||||||
|
|
||||||
@2: lda #$00
|
@2: ldy #11
|
||||||
|
lda #$00
|
||||||
sta (ptr2),y
|
sta (ptr2),y
|
||||||
lda #<entry
|
lda ptr2
|
||||||
ldx #>entry
|
|
||||||
jsr _cputs
|
|
||||||
lda #<name
|
|
||||||
ldx #>name
|
|
||||||
jsr pushax
|
|
||||||
clc
|
|
||||||
tya
|
|
||||||
adc ptr2
|
|
||||||
pha
|
pha
|
||||||
ldx ptr2 + 1
|
ldx ptr2 + 1
|
||||||
phx
|
phx
|
||||||
jsr pushax
|
|
||||||
ldy #$4
|
|
||||||
jsr _cprintf
|
|
||||||
lda #<_boot2_str
|
lda #<_boot2_str
|
||||||
ldx #>_boot2_str
|
ldx #>_boot2_str
|
||||||
jsr pushax
|
jsr pushax
|
||||||
@@ -107,9 +97,6 @@ _main:
|
|||||||
@end: bra @end
|
@end: bra @end
|
||||||
|
|
||||||
str: .asciiz "boot\r\n"
|
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"
|
_boot2_str: .asciiz "BOOT2 BIN"
|
||||||
_fail: .asciiz "not bootloader\r\n"
|
_fail: .asciiz "not bootloader\r\n"
|
||||||
_good: .asciiz "found bootloader!\r\n"
|
_good: .asciiz "found bootloader!\r\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user