Forum

*BUG* Register vari...
 
Notifications
Clear all

*BUG* Register variable

1 Posts
1 Users
1 Reactions
70 Views
Posts: 90
Admin
Topic starter
(@nivbot)
Member
Joined: 10 months ago

I was tidying up 6502 code and ran across a bug. As of right now if you set a variable for a register via DIM REG #R0 it will not allow you to replace the normal 0x0 usage for the register with the variable value. In other words, when you need to set a register value or something is sending a value to a register you still need to use the plain hex value. RDPIN 0x1 0x5 0x0 that would read pin 1 and put the result into register 5. As of right now, if you declare the register like DIM REG #R5, then doing RDPIN 0x1 REG 0x0 would not put the value into the correct register. 

This will be fixed with the next update. Just remember that if you need to set the register value in any way then you need to use either a regular HEX value or set a regular hex value variable for the register just for when setting value. For now. 


Share: