Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 1.18 KB

File metadata and controls

22 lines (16 loc) · 1.18 KB

High resolution plot sub-routine

Sub-routine in CBMBasic and ACME 6502 assembly to turn on any pixel in C64 high resolution mode.

File Description
plot.asm ACME assembly code for plot routine
plot-line.asm Plotting lines with ACME assembler routine
plot-joystick.asm Joystick movements plot points across the screen
plot.bas CBM Basic code for plot routine (slow)

In high resolution bit map mode, the Commodore 64 programmer has access to all 320x200 pixels on the screen. However, these pixels are still arranged in 8x8 character blocks and plotting a specific point requires a complex calculation that makes high resolution graphics impractical for BASIC programmers.

Reference

The code for the clear and fill routine is adapted to ACME crossassembler from Commodre 64/128 Assembly Language Programming (Mark Andrews).

The code for the plot routine is adapted from Advanced Macine Code Programming for the Commodore 64 (Stephenson & Stephenson).