Jump to content

Photo

How to stay in BASIC Text Mode 2 and 3

BASIC graphics

2 replies to this topic

#1 hueyjones70 OFFLINE  

hueyjones70

    Chopper Commander

  • 190 posts
  • Location:Clayton, North Carolina

Posted Sat Apr 14, 2018 6:35 PM

When I write a program that has a title page in Mode 2 or Mode 3, how can I make the screen stay in either of those modes when I need to respond to an {INPUT} statement.  So far when I try, the computer automatically jumps into the GRAPHICS 0 mode. 



#2 vitoco OFFLINE  

vitoco

    Moonsweeper

  • 294 posts

Posted Sat Apr 14, 2018 7:22 PM

One way is making BASIC to think that the current mode is graphics mode 0 using POKE 87,0 just before the INPUT, but then other special registers will affect, like address 82 which is 2, adding a left margin every 2 lines, and POSITION will act as if the screen has a resolution of 40x24, i.e. POSITION 30,0 will place the cursor in the middle of the second line. To be safe of all this weird behaviors, just POKE 87 again with 1 or 2 after the INPUT to return to the corresponding wide chars screen mode and continue using #6 for PRINT.

 



#3 hueyjones70 OFFLINE  

hueyjones70

    Chopper Commander

  • Topic Starter
  • 190 posts
  • Location:Clayton, North Carolina

Posted Sun Apr 15, 2018 5:53 PM

Thanks, I will give that a try.




0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users