Get system command output: Difference between revisions
no edit summary
Puppydrum64 (talk | contribs) m (→{{header|68000 Assembly}}: added more comments to explain what's going on) |
Puppydrum64 (talk | contribs) No edit summary |
||
Line 7:
* [[Execute_a_system_command | Execute a system command]]
<br><br>
=={{header|6502 Assembly}}==
{{works with|Commodore 64}}
Uses the system call <code>$FFED</code> which returns the screen dimensions (measured in 8x8 pixel squares).
<lang 6502asm>JSR $FFED
;returns screen width in X and screen height in Y
dex ;subtract 1. This is more useful for comparisons.
dey ;subtract 1. This is more useful for comparisons.
stx $20 ;store in zero page ram
sty $21 ;store in zero page ram</lang>
=={{header|68000 Assembly}}==
{{works with|NEOGEO MVS}}
|