VIA port output bits should read as 0, not 1
Versatile Commodore Emulator
Brought to you by:
blackystardust,
gpz
when VIA portbits are set to output and then read, they will read as 1 currently ... the third row shown by the following program should be all 0s (confirmed on my vic20), but they are all 255
1 poke 37139,0: poke 37154,0
2 s1=peek(37137): s2=peek(37152)
3 poke 37139,255 : poke 37154,255
4 s3=peek(37137): s4=peek(37152)
5 poke 37139,0:poke 37154,255
10 print s1;s2;s3;s4
100 run
This issue seems to have been fixed some time, bug should be closed I think.
dropped testprog into testprogs/VIC20/joystick/ ... its still broken in 3.2 :(
actually that testcase relies on unitialized registers - i have updated the testprog in the repo and now it matches my vic20.
closing :)