Search found 13 matches

by togster510
Mon Jul 13, 2020 11:57 am
Forum: Lounge
Topic:
Replies: -1
Views:

What is the kernel call to check if there is a character?

GETIN ($FFE4) returns zero if there are no characters in the keyboard buffer, I think.


Sent from my iPhone using Tapatalk
by togster510
Sat Jul 11, 2020 12:03 pm
Forum: Lounge
Topic:
Replies: -1
Views:

assembly variables / two byte memory addressing

<blockquote data-ipsquote="" class="ipsQuote" data-ipsquote-contentcommentid="1198" data-ipsquote-username="JohnGill" data-cite="JohnGill" data-ipsquote-userid="123" data-ipsquote-timestamp="1594462826"><div> So I switched the " to ' and recompiled  bank1.prg, and sure enough, the text bytes are enc...
by togster510
Fri Jul 10, 2020 11:01 pm
Forum: Lounge
Topic:
Replies: -1
Views:

assembly variables / two byte memory addressing

There is also https://style64.org/petscii/ which is good for exploring the relationships between different character encodings


Sent from my iPhone using Tapatalk
by togster510
Fri Jul 10, 2020 10:50 pm
Forum: Lounge
Topic:
Replies: -1
Views:

assembly variables / two byte memory addressing

<blockquote class="ipsQuote" data-ipsquote="" data-ipsquote-contentapp="forums" data-ipsquote-contentclass="forums_Topic" data-ipsquote-contentcommentid="1167" data-ipsquote-contentid="233" data-ipsquote-contenttype="forums" data-ipsquote-timestamp="1594419997" data-ipsquote-userid="123" data-ipsquo...
by togster510
Fri Jul 10, 2020 6:54 pm
Forum: Lounge
Topic:
Replies: -1
Views:

assembly variables / two byte memory addressing

Could you try changing the !text directive to !scr ?


Sent from my iPhone using Tapatalk
by togster510
Fri Jul 10, 2020 6:30 pm
Forum: Lounge
Topic:
Replies: -1
Views:

assembly variables / two byte memory addressing


How are you getting the text into ram? I suspect it's an encoding problem.

by togster510
Fri Jul 10, 2020 4:55 pm
Forum: Lounge
Topic:
Replies: -1
Views:

assembly variables / two byte memory addressing

Also, typing ‘m A134’ in the debugger will show the memory values in the lower section.


Sent from my iPhone using Tapatalk
by togster510
Fri Jul 10, 2020 4:43 pm
Forum: Lounge
Topic:
Replies: -1
Views:

assembly variables / two byte memory addressing

Could you post what it is supposed to say?


Sent from my iPhone using Tapatalk
by togster510
Fri Jul 10, 2020 3:47 pm
Forum: Lounge
Topic:
Replies: -1
Views:

assembly variables / two byte memory addressing


The 6502 is little endian. This means that when using a 16 bit number (like an address) it expects the 'low' byte to come before the 'high' byte in memory. So you need to swap some bytes round. For your example, you should have startLo = $14, startHi = $15, then lda (startLo),x.

Hope that helps.

by togster510
Tue Jul 07, 2020 3:52 pm
Forum: Lounge
Topic:
Replies: -1
Views:

Vera debugging


Thanks for the info.