Currying: Difference between revisions
→{{header|Z80 Assembly}}
Alextretyak (talk | contribs) (Added 11l) |
Puppydrum64 (talk | contribs) |
||
Line 2,237:
The answer to life is 42.
</pre>
=={{header|Z80 Assembly}}==
{{works with|Amstrad CPC}}
The BIOS call <code>&BB75</code> takes HL as input (as if it were an x,y coordinate pair) and outputs a video memory address into HL. Using a fixed input of HL=0x0101 we can effectively reset the cursors to the top left corner of the screen.
<lang z80>macro ResetCursors
ld hl,&0101
call &BB75
endm</lang>
=={{header|zkl}}==
|