1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-28 06:30:16 +00:00

Fixed uninitialized use of low byte of address "load".

This commit is contained in:
Stephan Mühlstrasser 2015-03-14 00:01:12 +01:00
parent f014800d3c
commit 72a9e331e3
3 changed files with 6 additions and 2 deletions

View File

@ -11,7 +11,7 @@ SYMBOLS {
MEMORY {
# for size of ZP, see runtime/zeropage.s and c1p/extzp.s
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;
}
SEGMENTS {

View File

@ -11,7 +11,7 @@ SYMBOLS {
MEMORY {
# for size of ZP, see runtime/zeropage.s and c1p/extzp.s
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;
}
SEGMENTS {

View File

@ -45,6 +45,8 @@ GETCHAR := $FFBF ; gets one character from ACIA
FIRSTVISC = $85 ; Offset of first visible character in video RAM
LINEDIST = $20 ; Offset in video RAM between two lines
lda #0
sta load
lda #<load_addr
ldx #>load_addr
tay
@ -105,6 +107,8 @@ CR = $0D
; ASCII-coded hexadecimal translation of the above assembly code.
; It was copied from the assembler listing.
.byte "A9", CR, "00", CR
.byte "85", CR, "08", CR
.byte "A9", CR
hex2 <load_addr
.byte CR, "A2", CR