Currying: Difference between revisions

(Added 11l)
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}}==
1,489

edits