Skip to content

Commit c14275f

Browse files
committed
Fix fastcall example for Z80
1 parent f21333e commit c14275f

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

docs/fastcall.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,16 @@ Fastcall should ONLY be used with functions that take a single parameter. If you
2020
```
2121
FUNCTION FASTCALL whatLetter (A as uByte) as uByte
2222
Asm
23+
PROC
24+
LOCAL DATA, START
2325
JP START
2426
DATA: DEFB "A Man, A Plan, A Canal, Panama"
2527
START: LD HL,DATA
26-
ADD HL,A
28+
LD D,0
29+
LD E,A
30+
ADD HL,DE
2731
LD A,(HL)
32+
ENDP
2833
End Asm
2934
END FUNCTION
3035
```

0 commit comments

Comments
 (0)