From: Leo C Date: Mon, 22 Aug 2016 07:54:08 +0000 (+0200) Subject: Increase stack size to 80 bytes X-Git-Tag: v0.4~3 X-Git-Url: http://cloudbase.mooo.com/gitweb/ddt180.git/commitdiff_plain/0dc44d1732461b7c3a3cc98e709f117afc165b97 Increase stack size to 80 bytes --- diff --git a/ddt180.z80 b/ddt180.z80 index 2f43399..1af627f 100644 --- a/ddt180.z80 +++ b/ddt180.z80 @@ -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