how can you delete the screen in textmods and set the cursor to x0-y0 at vic20 in asm?

Basic and Machine Language

Moderator: Moderators

Post Reply
funkheld
Vic 20 Devotee
Posts: 241
Joined: Tue Sep 10, 2019 4:23 am

how can you delete the screen in textmods and set the cursor to x0-y0 at vic20 in asm?

Post by funkheld »

Hi good afternoon.
how can you delete the screen in textmods and set the cursor to x0-y0 at vic20 in asm?

Thank you.
greeting
User avatar
Mike
Herr VC
Posts: 4841
Joined: Wed Dec 01, 2004 1:57 pm
Location: Munich, Germany
Occupation: electrical engineer

Re: how can you delete the screen in textmods and set the cursor to x0-y0 at vic20 in asm?

Post by Mike »

funkheld wrote:how can you delete the screen in textmods and set the cursor to x0-y0 at vic20 in asm?
Please stop wasting other people's time by asking questions you already know the answer of.
funkheld
Vic 20 Devotee
Posts: 241
Joined: Tue Sep 10, 2019 4:23 am

Re: how can you delete the screen in textmods and set the cursor to x0-y0 at vic20 in asm?

Post by funkheld »

I don't know of any solution in asm that works with TRSE to set the text cursor to x0 and y0.

you're confusing something

greeting
User avatar
Mike
Herr VC
Posts: 4841
Joined: Wed Dec 01, 2004 1:57 pm
Location: Munich, Germany
Occupation: electrical engineer

Re: how can you delete the screen in textmods and set the cursor to x0-y0 at vic20 in asm?

Post by Mike »

funkheld wrote:I don't know of any solution in asm that works with TRSE to set the text cursor to x0 and y0.
Both screen clear and cursor positioning are provided by KERNAL calls that can be found in the Programmer's Reference Guide. For sure they can both be implemented in TRSE if they not already have been.

Doesn't hurt if you consult the documentation and work out a solution by yourself instead of having handed it here to you on a silver platter.
User avatar
AndyH
Vic 20 Afficionado
Posts: 364
Joined: Thu Jun 17, 2004 5:51 am
Website: https://www.hewco.uk
Location: UK
Occupation: Developer

Re: how can you delete the screen in textmods and set the cursor to x0-y0 at vic20 in asm?

Post by AndyH »

No kernal support in the language out of the box, but nothing to stop you from doing that yourself with inline assembler.

There is a clearscreen method and you can set the built in pointer screenmemory := SCREEN_CHAR_LOC; which will put the pointer to the top left for further writing. Not the cursor though, not tried to use any of that side of things yet.
--
AndyH
HEWCO | Vic 20 blog
User avatar
Mike
Herr VC
Posts: 4841
Joined: Wed Dec 01, 2004 1:57 pm
Location: Munich, Germany
Occupation: electrical engineer

Re: how can you delete the screen in textmods and set the cursor to x0-y0 at vic20 in asm?

Post by Mike »

@AndyH: PM sent. :!:
Post Reply