Close

Screen Modes

A project log for Merlin

68000 Retro Super Computer

matthew-pearceMatthew Pearce 02/01/2022 at 17:290 Comments

I've added a new command to Basic. MODE - this switches from the text entry mode to the graphics mode.

LIST

1 MODE 0
5 CLS $FFFFFF: CLR
10 SIZE 16
20 CURSOR 60,60
25 LINEC $FF0000
30 GDPRINT "HELLO WORLD - PRESS A KEY"
31 SIZE 1
32 LINEC $00FF00
33 LINE 100,200,250,400,1
34 POINT 20,20,1
35 GDSWAP
45 INPUT A$
50 MODE 1

Ready

This code plots a point, a line and displays the text. Once you enter some text it swaps back to text mode. 

Discussions