diff options
author | Leo C | 2016-08-22 09:54:08 +0200 |
---|---|---|
committer | Leo C | 2016-08-22 09:54:08 +0200 |
commit | 0dc44d1732461b7c3a3cc98e709f117afc165b97 (patch) | |
tree | e592f0a1f2b6af049273b295e86c0cf9e19f2dfb | |
parent | c9705ee41ef7084154b4cf8bffe9fb3b6a054143 (diff) | |
download | ddt180-0dc44d1732461b7c3a3cc98e709f117afc165b97.zip |
Increase stack size to 80 bytes
-rw-r--r-- | ddt180.z80 | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -58,7 +58,7 @@ BDOS_SETDMA equ 26 ;Set DMA Address ; ddtz specific definitions
-STACK_SIZE equ 64 ;ddtz internal stack
+STACK_SIZE equ 80 ;ddtz internal stack
CONBUF_SIZE equ 80 ;Size of console input buffer
EXPR_BUF_SIZE equ 128 ;expressen buffer for conditional breakpoints
BP_CNT equ 12 ;Number of breakpoints
@@ -135,7 +135,7 @@ reg.pc: dw TPA var.$: dw 0000h
var.@: dw 0
-error_func:dw l0146h
+error_func:dw p_msg_error
cmd_rpt:dw mainloop
conbuf:
@@ -212,7 +212,7 @@ CMDTAB: mainloop:
ld sp,stack
- ld hl,l0146h
+ ld hl,p_msg_error
ld (error_func),hl
ld hl,(reg.pc)
ld (var.$),hl
@@ -249,7 +249,7 @@ exe_hl: call CALL_HL
jr mainloop
-l0146h:
+p_msg_error:
call pstr_inl
dc '?'
;fall thru
@@ -547,7 +547,7 @@ chk_stack: push de
ld hl,0
add hl,sp
- ld de,stack-40
+ ld de,stack-(STACK_SIZE-28)
call cp_hl_de
pop de
pop hl
@@ -3365,7 +3365,7 @@ cmda_lpend: jr cmda_loop
cmda_restart:
- call l0146h
+ call p_msg_error
ld sp,(l1262h)
jr cmda_loop
|