Reset the screen

General Programming help in C, C++ or ASM, Compiling / Debugging, and R3000A Central Processing Unit (CPU) information
Post Reply
User avatar
New Nova
Curious PSXDEV User
Curious PSXDEV User
Posts: 17
Joined: October 27th, 2018, 8:48 am
I am a: Student in IT, Artist
Motto: Try and retry.
PlayStation Model: SCPH-1001
Want to Find: Tutorials
Looking to: Share some tests
Location: France

Reset the screen

Post by New Nova » October 28th, 2018, 10:15 pm

Hi there.
I'm learning about making some PS1 programs, and I want to know how to reset the screen to display something else.
Let me explain.
I have a little program who display "HELLO WORLD" by pressing X. It also display "PRESS X TO HELLO" constantly.
So when I press X :

BUT I want to make the first line disappearing and the "HELLO WORLD" one displaying at the first line.
I attempt "ResetGraph(0)" and reinitialize everything to reprint, but it didn't work (just a black screen).

Can you help me out ?

Thanks :)

User avatar
Admin / PSXDEV
Admin / PSXDEV
Posts: 2258
Joined: December 31st, 2012, 5:37 pm
PlayStation Model: H2000/5502

Re: Reset the screen

Post by Shadow » October 31st, 2018, 8:05 pm

Easy. Make a variable and toggle between it when you press the X button. You don't need to reset the GPU each time either. That's silly. Just use an else statement with the FntPrint line or use a switch/case for multiple lines.
Development Console: SCPH-5502 with 8MB RAM, MM3 Modchip, PAL 60 Colour Modification (for NTSC), DB-9 breakout headers for both RGB and Serial output and an Xplorer with CAETLA 0.34.

Development Computer: Windows 98, Pentium 3 [400MHz], 128MB SDRAM, DTL-H2000, DTL-H201A, 21" Sony Trinitron CRT, CD-ROM burner, 3.25" and 5.25" Floppy Diskette Drives and a ZIP 100 Diskette Drive.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest