Hi there,
I recently dug into the world of MEGA65 BASIC, and did I just miss it, or is there really no "clear screen" command? Is PRINT"[HEART]" still the way to go?
Du bist in Begriff, Forum64 zu verlassen, um auf die folgende Adresse weitergeleitet zu werden:
Bitte beachte, dass wir für den Inhalt der Zielseite nicht verantwortlich sind und unsere Datenschutzbestimmungen dort keine Anwendung finden.
letzter Beitrag von Freddy am
Hi there,
I recently dug into the world of MEGA65 BASIC, and did I just miss it, or is there really no "clear screen" command? Is PRINT"[HEART]" still the way to go?
Hi there,
I recently dug into the world of MEGA65 BASIC, and did I just miss it, or is there really no "clear screen" command? Is PRINT"[HEART]" still the way to go?
Use the command SCNCLR
ah great then I really did miss that one...
SCNCLR [colour] Clears a text window or screen. SCNCLR (with no arguments) clears the current text window. The default window occupies the whole screen. SCNCLRcolour clears the graphic screen by filling it with the given colour.
Is that what you want?
Yes I recently read the manual and I only found commands that clear variables or the graphics screen, but I probably missed the SCNCLR command.
Hi there,
I recently dug into the world of MEGA65 BASIC, and did I just miss it, or is there really no "clear screen" command? Is PRINT"[HEART]" still the way to go?
SCNCLR Token = E8 erase text or graphic display
There seems to be an error in the Basic manual.
The example to the command SCNCLR does not use the command at all.
(actual version from 4th of November 2021)
Hi ZeHa
es funktionier auch so
10 Print CHR$(147)
Löscht den Textbildschirm
I recently dug into the world of MEGA65 BASIC, and did I just miss it, or is there really no "clear screen" command? Is PRINT"[HEART]" still the way to go?
Obvious question: Which is the fastest?
Is the DMA faster than ?"pasted-from-clipboard.png"?
I guess you can't beat DMA in filling memory areas anyway with any other method, since that is the max the hardware can do (fill rate is 40.5 megabytes / sec using DMA, if the CPU is at 40.5Mhz at least). But I suppose any BASIC command supposed to clear the screen for sure can be constructed to use DMA anyway
I guess you can't beat DMA in filling memory areas anyway with any other method, ...
I guess you can't beat DMA in filling memory areas anyway with any other method, ...
well you won, your solution is much more traditional
Alles anzeigenI guess you can't beat DMA in filling memory areas anyway with any other method, ...
well you won, your solution is much more traditional
You can still optimize it:
10 A=A+1:POKE 2047+A,32:IF A<25*80 THEN GOTO 10
You can still optimize it:
10 A=A+1:POKE 2047+A,32:IF A<25*80 THEN GOTO 10
Be careful, this might be too fast! I would add a SLEEP 1 to the loop just for safety.
You can still optimize it:
10 A=A+1:POKE 2047+A,32:IF A<25*80 THEN GOTO 10
Be careful, this might be too fast! I would add a SLEEP 1 to the loop just for safety.
That‘s why I wrote 25*80 instead of 2000.
Btw, you know that GO64 command.. Did you try GO65 (upto GO255)?