[TI ASM] Writing to port $21

Got questions? Got answers? Go here for both.

Moderator: MaxCoderz Staff

Post Reply
King Harold
Calc King
Posts: 1513
Joined: Sat 05 Aug, 2006 7:22 am

[TI ASM] Writing to port $21

Post by King Harold »

Writing to port $21..
What does it do? WikiTI says:
WikiTI wrote: Write Values

* [00h - FFh]: New value for the register
It also states that there is no reason to write to it, and nothing can make me more curious then that :P
I tried to write to it a few times, no crash or anything, but nothing seemed to happen at all.

Code: Select all

	ld b,255
	ld a,$C9
-:	out ($21),a
	djnz {-}
	ret
So I wrote 255 $C9's but they did not appear anywhere I could check
User avatar
Jim e
Calc King
Posts: 2457
Joined: Sun 26 Dec, 2004 5:27 am
Location: SXIOPO = Infinite lives for both players
Contact:

Post by Jim e »

$21 is protected. To write to it you must unlock the flash.

For what it actually does see the talk page.

There are still some ports I couldn't figure out or were boreing. You can read them up here.
Image
King Harold
Calc King
Posts: 1513
Joined: Sat 05 Aug, 2006 7:22 am

Post by King Harold »

Ok thanx, but I don't really understand that.. what happens when you write to it? it changes the execution protections?
User avatar
anykey
Extreme Poster
Posts: 420
Joined: Mon 31 Jan, 2005 3:36 am
Location: In the matrix
Contact:

Post by anykey »

darn. I thought somebody was paying for a port of a game, but no...just asm chatter!
:D
I think, therefore iMac
Image
King Harold
Calc King
Posts: 1513
Joined: Sat 05 Aug, 2006 7:22 am

Post by King Harold »

lol :P
Kalimero
Regular Member
Posts: 130
Joined: Fri 17 Dec, 2004 1:47 pm

Post by Kalimero »

Jim e wrote:...see the talk page.
Woah, August 2005, has it been that long...
Jim e wrote:There are still some ports I couldn't figure out or were boreing. You can read them up here.
Hmm, 0B and 0C. What about timeout value for receiving and sending?
Post Reply