When I output a null character with VPutMap, sometimes it displays nothing (like you would expect), but sometimes it displays a garbage character.
Hex codes
Characters
Look at the 00s on the bottom of the first picture. Some of those on the right appear as garbage.
Is this a known bug in VPutMap?
[TI ASM] Bug in VPutMap?
Moderator: MaxCoderz Staff
- Jim e
- Calc King
- Posts: 2457
- Joined: Sun 26 Dec, 2004 5:27 am
- Location: SXIOPO = Infinite lives for both players
- Contact:
Bug? Thats not a bug thats a feature.
Its probably displaying some leftovers in the ram. If Im right Ti is using there lame HtimesL rountine to calc the offset of the font character. So rather than get the very first charater its getting beyond the last character. If thats in the ram anything could end up getting displayed.
Ofcourse Im guessing. Either way just catch 0 and anything beyond $EC, as there shouldn't be any font characters there(or atleast none that we were told about).
Its probably displaying some leftovers in the ram. If Im right Ti is using there lame HtimesL rountine to calc the offset of the font character. So rather than get the very first charater its getting beyond the last character. If thats in the ram anything could end up getting displayed.
Ofcourse Im guessing. Either way just catch 0 and anything beyond $EC, as there shouldn't be any font characters there(or atleast none that we were told about).
-
- Calc King
- Posts: 1513
- Joined: Sat 05 Aug, 2006 7:22 am
Ofcourse you can, you would know what the memory around the characters looks like.
<completely insane thought> you could even make your own characters that way! but you would probebly crash your calc if you didn't restore it to that exact same state as you found that piece of memory in, so save a copy of it somewhere, which would mean its completely useless to do. </insane thought>
<completely insane thought> you could even make your own characters that way! but you would probebly crash your calc if you didn't restore it to that exact same state as you found that piece of memory in, so save a copy of it somewhere, which would mean its completely useless to do. </insane thought>