1
0
mirror of https://github.com/cc65/cc65.git synced 2026-04-25 06:17:58 +00:00

Replaced TGI_ERR_NO_MEM by TGI_ERR_NO_RES

git-svn-id: svn://svn.cc65.org/cc65/trunk@4467 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2009-11-13 15:53:01 +00:00
parent e74ed31936
commit 097b094fdd
5 changed files with 8 additions and 13 deletions
+4 -9
View File
@@ -157,8 +157,8 @@ search: tax
sbc #$10
bcs search
; No free IOCB
lda #TGI_ERR_NO_IOCB
; Out of resources
nores: lda #TGI_ERR_NO_RES
sta error
rts
@@ -169,15 +169,10 @@ found: ; Check if enough RAM is available
lda RAMTOP
sbc #>mem_needed
cmp APPMHI + 1
bcc nomem
bcc nores
bne switch
cpy APPMHI
bcs switch
; No memory
nomem: lda #TGI_ERR_NO_MEM
sta error
rts
bcc nores
; Switch into graphics mode
switch: lda #OPEN