mirror of
https://github.com/dschmenk/PLASMA.git
synced 2024-08-21 06:29:07 +00:00
Fix gameport wiring annunciator access
This commit is contained in:
parent
8656a2f71d
commit
4a6bec4033
@ -26,14 +26,14 @@ export def portRead
|
||||
end
|
||||
|
||||
def digitalWrite(pin, val)#0
|
||||
^ANN0[((pin&3)<<1)+val&1]
|
||||
ANN0[((pin&3)<<1)+val&1]
|
||||
end
|
||||
|
||||
export def portWrite(val)#0
|
||||
^ANN0[val&1]
|
||||
^ANN1[(val>>1)&1]
|
||||
^ANN2[(val>>2)&1]
|
||||
^ANN3[(val>>3)&1]
|
||||
ANN0[val&1]
|
||||
ANN1[(val>>1)&1]
|
||||
ANN2[(val>>2)&1]
|
||||
ANN3[(val>>3)&1]
|
||||
end
|
||||
|
||||
export def analogRead(pin)
|
||||
|
Loading…
Reference in New Issue
Block a user