Prints don't work on BG 1


SP4CEBAR 2023-11-08 23:04

BG 1

The code results in a blank screen, meaning that it printed the text to BG 0, which is off. Even though it should've printed to BG 1.

Timo 2023-11-08 23:21

If I remember correctly, PRINT uses the current WINDOW settings instead of BG.
But then there is a bug in the WINDOW command relates to the background parameter…
In any case, you can use TEXT with BG.

was8bit 2023-11-09 04:02

With TEXT and TRACE, i believe PRINT has limited ability anyways... more like a gateway command for old school programmers to have a familiar place to start with.... then when more familiar with lowres code, they upgrade to TEXT

... however, i still like to use PRINT at the top of the code as a quick way do math, like PRINT 120*16... it acts like a quicky calculator ... just dont forget to add an END below so it just does the math without running your program ;)

SP4CEBAR 2023-11-09 09:22

I like to use print whenever I want to display both strings and numbers. I can limit the digits using: PRINT LEFT$(STR$( VALUE ), DIGITS )

Log in to reply.