Who is right? I would say whoever you get your information from. I have this picture in my head of you in a big fur going beyond the 'Great Wall' looking for action!Shaun_B wrote:Hi Bert, you say we drink too much but then I hear that you can't have too much of a good thing... so who is right?
AJordison, I'll do some testing later. Unfortunately I was woken up early this morning by my daughter so I'm not braining very well at the moment.
Regards,
Shaun.
print at x,y equivalent
Re: print at x,y equivalent
Re: print at x,y equivalent
Not today - way too tired for anything like that.satpro wrote:Who is right? I would say whoever you get your information from. I have this picture in my head of you in a big fur going beyond the 'Great Wall' looking for action!
Regards,
Shaun.
BASIC Programming - making the mistakes so that you don't have to.
Circles and Squares.
Nothing I post here will stand up in a court of law.
Circles and Squares.
Nothing I post here will stand up in a court of law.
Re: print at x,y equivalent
Yeah, it seemed like both of you guys were up late last night. Hey, I didn't mean to snag this topic. Arthur makes a good point. Timing it is the way to go. I know you can use VICE to do that, but maybe one of us can come up with something in 65x code, perhaps a CIA timing or something like that.
Re: print at x,y equivalent
Hmm... you'd know better than I would on the 65x side of things. I'll see if the test I have in mind is reliable enough tonight.
Regards,
Shaun.
Regards,
Shaun.
BASIC Programming - making the mistakes so that you don't have to.
Circles and Squares.
Nothing I post here will stand up in a court of law.
Circles and Squares.
Nothing I post here will stand up in a court of law.
Re: print at x,y equivalent
Isn't there a slightly quicker one again using zero-page locations 209-214 to force the location of the cursor? I'll look it up and see if I can remember that trick
Re: print at x,y equivalent
If you're looking for a way to "print" to the last screen position without "poking", try printing your last character to the space just before the last followed by a cursor-left and an insert.
Ray...
It's Ok if you don't agree with me, I can't force you to be right.
It's Ok if you don't agree with me, I can't force you to be right.
Re: print at x,y equivalent
Top tip - I'll give it a try thanks.buzbard wrote:If you're looking for a way to "print" to the last screen position without "poking", try printing your last character to the space just before the last followed by a cursor-left and an insert.
Regards,
Shaun.
BASIC Programming - making the mistakes so that you don't have to.
Circles and Squares.
Nothing I post here will stand up in a court of law.
Circles and Squares.
Nothing I post here will stand up in a court of law.
Re: print at x,y equivalent
Shaun_B wrote:Here's a quick example of how to do print to position x, y in basic:Please note that you are not able to print to the last character of the screen without forcing a new line. If you want a character to be written to the last screen position, you'll need to poke it there, like poke 2023,81 - I don't know if there's an advanced trick in basic that will stop a new line when printing to the last character position. Someone here may be able to answer that.Code: Select all
0 x$="{home}{right*39}":y$="{down*24}" 10 x=10:y=7: rem x is across and y is down 20 print left$(x$,x)right$(y$,y)"hello";
Regards,
Shaun.
Code: Select all
10 PRINT CHR$(147)
20 SP = 20: ZE = 3: A$ = "Good Morning!": GOSUB 1000: GOSUB 2000
30 SP = 10: ZE = 3: A$ = "I'm the Commodore 64": GOSUB 1000: GOSUB 2000
40 SP = 12: ZE = 6: A$ = "And what is your name ?": GOSUB 1000
100 END
1000 REM cursor positioning and printing
1010 POKE 211,SP :POKE 214, ZE: SYS 58640 : PRINT A$
1020 RETURN
2000 REM delay-loop
2010 FOR X=0 TO 3000: NEXT X
2020 RETURN
- Gyro Gearloose
- Member
- Posts: 471
- Joined: Sun Nov 15, 2015 5:20 am
- Contact:
Re: print at x,y equivalent
What's wrong with using the SPC command?
The price one pays for pursuing any profession, or calling, is an intimate knowledge of its ugly side.
Who is online
Users browsing this forum: No registered users and 14 guests