Browse Source

Preserve registers

pull/312/head
b1ackmai1er 3 years ago
parent
commit
c072027b87
  1. 2
      Source/Apps/Tune/printing.inc
  2. 2
      Source/Apps/VGM/printing.inc

2
Source/Apps/Tune/printing.inc

@ -34,6 +34,7 @@ PRTCR:
; Print a zero terminated string at (DE) without destroying any registers
;
PRTSTR:
PUSH AF
PUSH DE
;
PRTSTR1:
@ -46,6 +47,7 @@ PRTSTR1:
;
PRTSTR2:
POP DE ; restore registers
POP AF
RET
;
; Print the value in A in hex without destroying any registers

2
Source/Apps/VGM/printing.inc

@ -34,6 +34,7 @@ PRTCR:
; Print a zero terminated string at (DE) without destroying any registers
;
PRTSTR:
PUSH AF
PUSH DE
;
PRTSTR1:
@ -46,6 +47,7 @@ PRTSTR1:
;
PRTSTR2:
POP DE ; restore registers
POP AF
RET
;
; Print the value in A in hex without destroying any registers

Loading…
Cancel
Save