mirror of
https://github.com/cc65/cc65.git
synced 2024-12-28 22:30:12 +00:00
Fixed uninitialized use of low byte of address "load".
This commit is contained in:
parent
f014800d3c
commit
72a9e331e3
@ -11,7 +11,7 @@ SYMBOLS {
|
|||||||
MEMORY {
|
MEMORY {
|
||||||
# for size of ZP, see runtime/zeropage.s and c1p/extzp.s
|
# for size of ZP, see runtime/zeropage.s and c1p/extzp.s
|
||||||
ZP: file = "", define = yes, start = $0002, size = $001A + $0006;
|
ZP: file = "", define = yes, start = $0002, size = $001A + $0006;
|
||||||
HEAD: file = %O, start = $0000, size = $00AA;
|
HEAD: file = %O, start = $0000, size = $00B6;
|
||||||
RAM: file = %O, define = yes, start = %S, size = __HIMEM__ - __STACKSIZE__ - %S;
|
RAM: file = %O, define = yes, start = %S, size = __HIMEM__ - __STACKSIZE__ - %S;
|
||||||
}
|
}
|
||||||
SEGMENTS {
|
SEGMENTS {
|
||||||
|
@ -11,7 +11,7 @@ SYMBOLS {
|
|||||||
MEMORY {
|
MEMORY {
|
||||||
# for size of ZP, see runtime/zeropage.s and c1p/extzp.s
|
# for size of ZP, see runtime/zeropage.s and c1p/extzp.s
|
||||||
ZP: file = "", define = yes, start = $0002, size = $001A + $0006;
|
ZP: file = "", define = yes, start = $0002, size = $001A + $0006;
|
||||||
HEAD: file = %O, start = $0000, size = $00AA;
|
HEAD: file = %O, start = $0000, size = $00B6;
|
||||||
RAM: file = %O, define = yes, start = %S, size = __HIMEM__ - __STACKSIZE__ - %S;
|
RAM: file = %O, define = yes, start = %S, size = __HIMEM__ - __STACKSIZE__ - %S;
|
||||||
}
|
}
|
||||||
SEGMENTS {
|
SEGMENTS {
|
||||||
|
@ -45,6 +45,8 @@ GETCHAR := $FFBF ; gets one character from ACIA
|
|||||||
FIRSTVISC = $85 ; Offset of first visible character in video RAM
|
FIRSTVISC = $85 ; Offset of first visible character in video RAM
|
||||||
LINEDIST = $20 ; Offset in video RAM between two lines
|
LINEDIST = $20 ; Offset in video RAM between two lines
|
||||||
|
|
||||||
|
lda #0
|
||||||
|
sta load
|
||||||
lda #<load_addr
|
lda #<load_addr
|
||||||
ldx #>load_addr
|
ldx #>load_addr
|
||||||
tay
|
tay
|
||||||
@ -105,6 +107,8 @@ CR = $0D
|
|||||||
; ASCII-coded hexadecimal translation of the above assembly code.
|
; ASCII-coded hexadecimal translation of the above assembly code.
|
||||||
; It was copied from the assembler listing.
|
; It was copied from the assembler listing.
|
||||||
|
|
||||||
|
.byte "A9", CR, "00", CR
|
||||||
|
.byte "85", CR, "08", CR
|
||||||
.byte "A9", CR
|
.byte "A9", CR
|
||||||
hex2 <load_addr
|
hex2 <load_addr
|
||||||
.byte CR, "A2", CR
|
.byte CR, "A2", CR
|
||||||
|
Loading…
Reference in New Issue
Block a user