mirror of
https://github.com/cc65/cc65.git
synced 2024-12-24 11:31:31 +00:00
Renamed O65_OS_CC65_MODULE -> O65_OS_CC65 in the headers.
Squeezed one precious byte out of the loader code:-) git-svn-id: svn://svn.cc65.org/cc65/trunk@3445 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
0093a8f388
commit
624c808dbc
@ -200,17 +200,16 @@ CleanupAndExit:
|
||||
|
||||
; Check if we have to free the allocated block
|
||||
|
||||
lda Module
|
||||
ora Module+1
|
||||
beq @L1 ; Jump if no memory allocated
|
||||
|
||||
lda Module
|
||||
ldx Module+1
|
||||
jsr _free ; Free the allocated block
|
||||
bne @L1
|
||||
tay ; Test high byte
|
||||
beq @L2
|
||||
@L1: jsr _free ; Free the allocated block
|
||||
|
||||
; Restore the register bank
|
||||
|
||||
@L1: jsr RestoreRegBank
|
||||
@L2: jsr RestoreRegBank
|
||||
|
||||
; Restore the error code and return to the caller
|
||||
|
||||
@ -390,7 +389,7 @@ Opt: jsr ReadByte ; Read the length byte
|
||||
bne OSError
|
||||
|
||||
jsr ReadByte ; Get the operating system
|
||||
cmp #O65_OS_CC65_MODULE
|
||||
cmp #O65_OS_CC65
|
||||
bne OSError ; Wrong operating system
|
||||
|
||||
jsr ReadByte ; Get the version number, expect zero
|
||||
|
Loading…
Reference in New Issue
Block a user