no TGI_ERR_NO_MEM or TGI_ERR_NO_IOCB anymore: replaced by TGI_ERR_NO_RES

git-svn-id: svn://svn.cc65.org/cc65/trunk@4469 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cpg
2009-11-15 14:55:14 +00:00
parent b739a2d335
commit cce24a2c9a

View File

@@ -168,9 +168,10 @@ search: tax
sub #$10 sub #$10
bcs search bcs search
; No free IOCB ; Not enough resources available (free IOCB or memory)
lda #TGI_ERR_NO_IOCB ; enter with C cleared!
jmp exit nores: lda #TGI_ERR_NO_RES
bcc exit
found: ; Check if enough RAM is available found: ; Check if enough RAM is available
lda #0 lda #0
@@ -179,14 +180,10 @@ found: ; Check if enough RAM is available
lda RAMTOP lda RAMTOP
sbc #>mem_needed sbc #>mem_needed
cmp APPMHI + 1 cmp APPMHI + 1
bcc nomem bcc nores
bne switch bne switch
cpy APPMHI cpy APPMHI
bcs switch bcc nores ; not enough memory
; No memory
nomem: lda #TGI_ERR_NO_MEM
jmp exit
; Switch into graphics mode ; Switch into graphics mode
switch: lda #OPEN switch: lda #OPEN