]> cloudbase.mooo.com Git - ddt180.git/commitdiff
Increase stack size to 80 bytes
authorLeo C <erbl259-lmu@yahoo.de>
Mon, 22 Aug 2016 07:54:08 +0000 (09:54 +0200)
committerLeo C <erbl259-lmu@yahoo.de>
Mon, 22 Aug 2016 07:54:08 +0000 (09:54 +0200)
ddt180.z80

index 2f433996594f752beca0b7e9c039de157f19998c..1af627f6865ef9d0804e2e7150116e80270b474a 100644 (file)
@@ -58,7 +58,7 @@ BDOS_SETDMA   equ     26      ;Set DMA Address
 \r
 ; ddtz specific definitions\r
 \r
-STACK_SIZE     equ     64      ;ddtz internal stack\r
+STACK_SIZE     equ     80      ;ddtz internal stack\r
 CONBUF_SIZE    equ     80      ;Size of console input buffer\r
 EXPR_BUF_SIZE  equ     128     ;expressen buffer for conditional breakpoints\r
 BP_CNT         equ     12      ;Number of breakpoints\r
@@ -135,7 +135,7 @@ reg.pc:     dw      TPA
 var.$: dw      0000h\r
 var.@: dw      0\r
 \r
-error_func:dw  l0146h\r
+error_func:dw  p_msg_error\r
 cmd_rpt:dw     mainloop\r
 \r
 conbuf:\r
@@ -212,7 +212,7 @@ CMDTAB:
 \r
 mainloop:\r
        ld sp,stack\r
-       ld hl,l0146h\r
+       ld hl,p_msg_error\r
        ld (error_func),hl\r
        ld hl,(reg.pc)\r
        ld (var.$),hl\r
@@ -249,7 +249,7 @@ exe_hl:
        call CALL_HL\r
        jr mainloop\r
 \r
-l0146h:\r
+p_msg_error:\r
        call    pstr_inl\r
        dc      '?'\r
        ;fall thru\r
@@ -547,7 +547,7 @@ chk_stack:
        push de\r
        ld hl,0\r
        add hl,sp\r
-       ld de,stack-40\r
+       ld de,stack-(STACK_SIZE-28)\r
        call cp_hl_de\r
        pop de\r
        pop hl\r
@@ -3365,7 +3365,7 @@ cmda_lpend:
        jr cmda_loop\r
 \r
 cmda_restart:\r
-       call l0146h\r
+       call p_msg_error\r
        ld sp,(l1262h)\r
        jr cmda_loop\r
 \r