The TPS reading is Throttle Position Sensor. 0%-100%.
Code: Select all
Broken external image link
http://i207.photobucket.com/albums/bb73/ultimateroadwarrior/DSCF0069.jpgCode: Select all
Broken external image link
http://i207.photobucket.com/albums/bb73/ultimateroadwarrior/DSCF0069.jpg


Code: Select all
Broken external image link
http://i207.photobucket.com/albums/bb73/ultimateroadwarrior/CPLD1stmod.jpgCode: Select all
Broken external image link
http://i207.photobucket.com/albums/bb73/ultimateroadwarrior/DSCF0110.jpgCode: Select all
Broken external image link
http://i207.photobucket.com/albums/bb73/ultimateroadwarrior/DSCF0115.jpg

Code: Select all
LDY #$00 ; clear the block index
STY $00 ; clear the pointer low byte
LDX #$00 ; clear the bank number
sloop4
STX bank ; set the bank
LDA #$80
STA $01 ; reset the pointer high byte
sloop3
LDA ($00),Y ; copy the byte ..
STA ($00),Y ; .. to RAM
INY
BNE sloop3 ; loop if more bytes to copy
INC $01
LDA $01
CMP #$C0 ; compare it with end + 1
BNE sloop3 ; loop if not there yet
INX ; increment the bank number
CPX #$40 ; compare it with end + 1
BNE sloop4 ; loop if not there yet
begin2
STZ bank