- AxeNet Axiom!
- 22 Apr 2026 03:35:54 pm
- Last edited by ti_kid on 24 Apr 2026 07:25:39 pm; edited 1 time in total
OutAccept gives invalid token in AXE?
Code:
Edit: Shoulve added more info.
OutDone returns >0 if the out flag is 0 else 1.
InAvail returns >0 if the in flag is 1 else 0.
OutAccept sets out flag to 1.
InAccept sets in flag to 0.
Everything accessible through stats button 2nd and 3rd menus.
Edit: Renamed topic and fixed code a bit. (OutAccept still broken)
Code:
Cn2_Setup = $4209
Cn2_Setdown = $4212
Cn2_GetK = $4221
Incoming = $86F3
Outgoing = $87FA
hOneVar = $01E4 ;"1-Var Stats "
hTwoVar = $01E6 ;"2-Var Stats "
hMedMed = $01F0 ;"Med-Med "
hLR1 = $01FE ;"LinReg(ax+b) "
hQuad = $01F2 ;"QuadReg "
hCubicR = $005C ;"CubicReg "
hQuartR = $005E ;"QuartReg "
hZTest = $0420 ;"Z-Test("
hTTest = $0422 ;"T-Test("
.dw $C0DE
.dw 3 ;Size
.db $08 ;Doors only
.db $F2, 0; 1-Var-Stats
.db 0
.db 0 ;No args
.org 0
call Cn2_Setup
.dw 3
.db $08
.db $F3,0 ;2-var-stats
.db 0
.db 0
.org 0
call Cn2_Setdown
.dw 6
.db $08
.db $F8, 0 ;Med-Med
.db 0
.db 0
.org 0
call Cn2_GetK
ld h,0
ld l,a
;Is data available?
.dw dataAvailEnd
.db $08
.db $FF,0 ;LinReg(ax+b)
.db 0
.db 0
.org 0
ld hl,Incoming+6
bit 7,(hl)
jr nz,dataAvailEnd
ld hl,0
dataAvailEnd:
;Accept data
.dw dataAcceptEnd
.db $08
.db $F9,0 ;Quad reg
.db 0
.db 0
.org 0
ld hl,Incoming+6
res 7,(hl)
dataAcceptEnd:
;Is send done?
.dw sendDoneEnd
.db $08
.db $2E, 0;CUbic reg
.db 0
.db 0
ld hl,Outgoing+6
bit 7,(hl)
jr z,sendDoneEnd
ld hl,0
sendDoneEnd:
;Send data
.dw sendDataEnd
.db $08
.db $2F, 0 ;Quart reg
.db 0
.db 0
.org 0
ld hl,Outgoing+6
set 7,(hl)
sendDataEnd:
;Incoming constant
.dw 3
.db $08
.db $BB, $3B ;Z-test
.db 0
.db 0
.org 0
ld hl,Incoming
.dw 3
.db $08
.db $BB, $3C ;T-Test
.db 0
.db 0
.org 0
ld hl,Outgoing
.dw 0
.dw hOneVar
.db 7,"CNSetup"
.dw hTwoVar
.db 5,"CNEnd"
.dw hMedMed
.db 5,"CNKey"
.dw hLR1
.db 8,"InAvail?"
.dw hQuad
.db 8,"InAccept"
.dw hCubicR
.db 8,"OutDone?"
.dw hQuartR
.db 9,"OutAccept"
.dw hZTest
.db 6,"InData"
.dw hTTest
.db 7,"OutData"Edit: Shoulve added more info.
OutDone returns >0 if the out flag is 0 else 1.
InAvail returns >0 if the in flag is 1 else 0.
OutAccept sets out flag to 1.
InAccept sets in flag to 0.
Everything accessible through stats button 2nd and 3rd menus.
Edit: Renamed topic and fixed code a bit. (OutAccept still broken)




