SHARE
TWEET

BSXTokens.asm

LuigiBlood Feb 5th, 2013 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //BS-X Tokens Include File for bass
  2. //By LuigiBlood, based on nocash documentation
  3.  
  4. //Normal Tokens
  5. macro ControlSubThread entrypoint
  6.         db $00
  7.         dl {entrypoint}
  8. endmacro
  9.  
  10. macro SetXYsignViewDirectionToSignsOfIncomingValues vX, vY
  11.         db $01
  12.         dl {vX}, {vY}
  13. endmacro
  14.  
  15. macro SleepWithFixedObjShape wSleep, pObjShape
  16.         db $02
  17.         dw {wSleep}
  18.         dl {pObjShape}
  19. endmacro
  20.  
  21. macro SleepWithXYstepAs9wayObjShape wSleep, pObjShape1, pObjShape2, pObjShape3, pObjShape4, pObjShape5, pObjShape6, pObjShape7, pObjShape8, pObjShape9
  22.         db $03
  23.         dw {wSleep}
  24.         dl {pObjShape1}, {pObjShape2}, {pObjShape3}, {pObjShape4}, {pObjShape5}, {pObjShape6}, {pObjShape7}, {pObjShape8}, {pObjShape9}
  25. endmacro
  26.  
  27. macro SleepWithXYsignAs9wayObjShape wSleep, pObjShape1, pObjShape2, pObjShape3, pObjShape4, pObjShape5, pObjShape6, pObjShape7, pObjShape8, pObjShape9
  28.         db $04
  29.         dw {wSleep}
  30.         dl {pObjShape1}, {pObjShape2}, {pObjShape3}, {pObjShape4}, {pObjShape5}, {pObjShape6}, {pObjShape7}, {pObjShape8}, {pObjShape9}
  31. endmacro
  32.  
  33. macro ClearForcedBlankAndFadeIn wSleep, wSpeedRange
  34.         db $05
  35.         dw {wSleep}, {wSpeedRange}
  36. endmacro
  37.  
  38. macro MasterBrightnessFadeOut wSleep, wSpeedRange
  39.         db $06
  40.         dw {wSleep}, {wSpeedRange}
  41. endmacro
  42.  
  43. macro SetMosaicAndSleep wSleep, wBgFlags, wMosaicSize
  44.         db $07
  45.         dw {wSleep}, {wBgFlags}, {wMosaicSize}
  46. endmacro
  47.  
  48. macro SleepAndBlendFromCurrentToNewPalette wSleep, vPalIndex, pNewPalette
  49.         db $09
  50.         dw {wSleep}
  51.         dl {vPalIndex}
  52.         dl {pNewPalette}
  53. endmacro
  54.  
  55. macro HdmaEffectsOnBg3 wSleep, wEffectType, vScrollOffset, vExtraOffset
  56.         db $0A
  57.         dw {wSleep}, {wEffectType}
  58.         dl {vScrollOffset}, {vExtraOffset}
  59. endmacro
  60.  
  61. macro SleepWithAngleAs9wayObjShape wSleep, pObjShape1, pObjShape2, pObjShape3, pObjShape4, pObjShape5, pObjShape6, pObjShape7, pObjShape8, pObjShape9
  62.         db $0B
  63.         dw {wSleep}
  64.         dl {pObjShape1}, {pObjShape2}, {pObjShape3}, {pObjShape4}, {pObjShape5}, {pObjShape6}, {pObjShape7}, {pObjShape8}, {pObjShape9}
  65. endmacro
  66.  
  67. macro DisableObjsOfAllThreads
  68.         db $0C
  69. endmacro
  70.  
  71. macro ReEnableObjsOfAllThreads
  72.         db $0D
  73. endmacro
  74.  
  75. macro SleepWithXYsignAs9wayPlayerGenderObjShape wSleep, pObjShape1, pObjShape2, pObjShape3, pObjShape4, pObjShape5, pObjShape6, pObjShape7, pObjShape8, pObjShape9
  76.         db $0E
  77.         dw {wSleep}
  78.         dl {pObjShape1}, {pObjShape2}, {pObjShape3}, {pObjShape4}, {pObjShape5}, {pObjShape6}, {pObjShape7}, {pObjShape8}, {pObjShape9}
  79. endmacro
  80.  
  81. macro SleepAndSetXYpos wSleep, vX, vY
  82.         db $10
  83.         dw {wSleep}
  84.         dl {vX}, {vY}
  85. endmacro
  86.  
  87. macro SleepAndMoveTowardsTargetXYpos wSleep, vX, vY
  88.         db $11
  89.         dw {wSleep}
  90.         dl {vX}, {vY}
  91. endmacro
  92.  
  93. macro SleepAndMoveByIncomingXYstep wSleep, vX, vY
  94.         db $12
  95.         dw {wSleep}
  96.         dl {vX}, {vY}
  97. endmacro
  98.  
  99. macro SleepAndMoveAndAdjustXYstep wSleep, vRotationAngleToOldXYstep
  100.         db $13
  101.         dw {wSleep}
  102.         dl {vRotationAngleToOldXYstep}
  103. endmacro
  104.  
  105. macro SleepAndMoveWithinBoundary wSleep, vX1, vX2, vY1, vY2, wFactor
  106.         db $14
  107.         dw {wSleep}
  108.         dl {vX1}, {vX2}, {vY1}, {vY2}
  109.         dw {wFactor}
  110. endmacro
  111.  
  112. macro SleepAndMoveChangeBothXYstepsIfCollideOtherThread wSleep, wBounceSpeed
  113.         db $15
  114.         dw {wSleep}, {wBounceSpeed}
  115. endmacro
  116.  
  117. macro SleepAndMoveAndIncrementXYstep wSleep, vXincr, vYincr, qXlimit, qYlimit
  118.         db $16
  119.         dw {wSleep}
  120.         dl {vXincr}, {vYincr}, {qXlimit}, {qYlimit}
  121. endmacro
  122.  
  123. macro SleepAndMoveByIncomingYstepAndWavingXstep wSleep, wY
  124.         db $17
  125.         dw {wSleep}, {wY}
  126. endmacro
  127.  
  128. macro SleepAndMoveAndAccelerateTowardsTarget wSleep, vX, vY, vSpeed
  129.         db $18
  130.         dw {wSleep}
  131.         dl {vX}, {vY}, {vSpeed}
  132. endmacro
  133.  
  134. macro SleepAndMoveAndSomethingComplicated wSleep, vX, vY
  135.         db $19
  136.         dw {wSleep}
  137.         dl {vX}, {vY}
  138. endmacro
  139.  
  140. macro AdjustXYstep wNewSpeedOrSo
  141.         db $1A
  142.         dw {wNewSpeedOrSo}
  143. endmacro
  144.  
  145. macro MoveByOldXYstepWithoutSleep
  146.         db $1B
  147. endmacro
  148.  
  149. macro SleepAndMoveChangeXYstepIfCollideOtherThread wSleep, vMask, vX, vY
  150.         db $1C
  151.         dw {wSleep}
  152.         dl {vMask}, {vX}, {vY}
  153. endmacro
  154.  
  155. macro Goto pTarget
  156.         db $20
  157.         dl {pTarget}
  158. endmacro
  159.  
  160. macro Gosub pTarget
  161.         db $21
  162.         dl {pTarget}
  163. endmacro
  164.  
  165. macro Return
  166.         db $22
  167. endmacro
  168.  
  169. macro QuitThread
  170.         db $23
  171. endmacro
  172.  
  173. macro LoopStart wRepeatCount
  174.         db $24
  175.         dl {wRepeatCount}
  176. endmacro
  177.  
  178. macro Sleep
  179.         db $25
  180.         dl {wSleep}
  181. endmacro
  182.  
  183. macro MathsLet vA, vB
  184.         db $26
  185.         dl {vA}, {vB}
  186. endmacro
  187.  
  188. macro MathsAdd vA, vB
  189.         db $27
  190.         dl {vA}, {vB}
  191. endmacro
  192.  
  193. macro MathsSub vA, vB
  194.         db $28
  195.         dl {vA}, {vB}
  196. endmacro
  197.  
  198. macro MathsAnd vA, vB
  199.         db $29
  200.         dl {vA}, {vB}
  201. endmacro
  202.  
  203. macro MathsOr vA, vB
  204.         db $2A
  205.         dl {vA}, {vB}
  206. endmacro
  207.  
  208. macro MathsXor vA, vB
  209.         db $2B
  210.         dl {vA}, {vB}
  211. endmacro
  212.  
  213. macro MathsNot vA
  214.         db $2C
  215.         dl {vA}
  216. endmacro
  217.  
  218. macro MathsMulSigned vA, vB
  219.         db $2D
  220.         dl {vA}, {vB}
  221. endmacro
  222.  
  223. macro MathsDivSigned vA, vB
  224.         db $2E
  225.         dl {vA}, {vB}
  226. endmacro
  227.  
  228. macro SignedCompareWithConditionalGoto vA, wOperator, vB
  229.         db $2F
  230.         dl {vA}
  231.         dw {wOperator}
  232.         dl {vB}
  233. endmacro
  234.  
  235. macro GotoIf_1998_IsNonzero pTarget
  236.         db $30
  237.         dl {pTarget}
  238. endmacro
  239.  
  240. macro GotoIf_1998_IsZero pTarget
  241.         db $31
  242.         dl {pTarget}
  243. endmacro
  244.  
  245. macro GotoArray vArrayIndex, pPointerToArrayWithTargets
  246.         db $32
  247.         dl {vArrayIndex}, {pPointerToArrayWithTargets}
  248. endmacro
  249.  
  250. macro ReadJoypad bJoypadNumber, wX, wY
  251.         db $33
  252.         db {bJoypadNumber}
  253.         dw {wX}, {wY}
  254. endmacro
  255.  
  256. macro CreateAnotherInterpreterThreadWithLimit vThreadCount, bLimit, pEntry
  257.         db $34
  258.         dl {vThreadCount}
  259.         db {bLimit}
  260.         dl {pEntry}
  261. endmacro
  262.  
  263. macro CheckIfXYposCollidesWithFlaggedThreads vFlagMask
  264.         db $35
  265.         dl {vFlagMask}
  266. endmacro
  267.  
  268. macro GetUnsignedRandomValue vA, wB
  269.         db $36
  270.         dl {vA}
  271.         dw {wB}
  272. endmacro
  273.  
  274. macro SetObjWidthDepthFlagmask vWidth, vDepth, vMask
  275.         db $37
  276.         dl {vWidth}, {vDepth}, {vMask}
  277. endmacro
  278.  
  279. macro CreateAnotherInterpreterThreadWithIncomingXYpos vX, vY, pEntrypoint
  280.         db $38
  281.         dl {vX}, {vY}, {pEntrypoint}
  282. endmacro
  283.  
  284. macro SoundApuMessage00h_nnh vParameter8bit
  285.         db $3A
  286.         dl {vParameter8bit}
  287. endmacro
  288.  
  289. macro SoundApuMessage01h_nnnh vLower6bit, bMiddle2bit, bUpper2bit
  290.         db $3B
  291.         dl {vLower6bit}
  292.         db {bMiddle2bit}, {bUpper2bit}
  293. endmacro
  294.  
  295. macro SoundApuMessage02h_nnnnh vLower6bit, bMiddle2bit, bUpper2bit
  296.         db $3C
  297.         dl {vLower6bit}
  298.         db {bMiddle2bit}, {bUpper2bit}
  299. endmacro
  300.  
  301. macro SoundApuUpload bMode, pPtrToPtrToData
  302.         db $3D
  303.         db {bMode}
  304.         dl {pPtrToPtrToData}
  305. endmacro
  306.  
  307. macro SetPpuBgModeKillAllOtherThreadsAndResetVariousStuff bBgMode
  308.         db $3E
  309.         db {bBgMode}
  310. endmacro
  311.  
  312. macro SetTemporaryTableForBanksF1hAndUp vTableNumber, pTableBase
  313.         db $3F
  314.         dl {vTableNumber}, {pTableBase}
  315. endmacro
  316.  
  317. macro KillAllFlaggedThreads vMask
  318.         db $40
  319.         dl {vMask}
  320. endmacro
  321.  
  322. macro SetBUGGEDTimerHotspot wHotspot
  323.         db $41
  324.         dw {wHotspot}
  325. endmacro
  326.  
  327. macro Ppu_Bg1_Bg2_SetScrollPosition vX, vY
  328.         db $42
  329.         dl {vX}, {vY}
  330. endmacro
  331.  
  332. macro Ppu_Bg1_Bg2_ApplyScrollOffsetAndSleep wSleep, vX, vY
  333.         db $43
  334.         dw {wSleep}
  335.         dl {vX}, {vY}
  336. endmacro
  337.  
  338. macro NopWithDummyParameters wUnused1, wUnused2
  339.         db $44
  340.         dw {wUnused1}, {wUnused2}
  341. endmacro
  342.  
  343. macro NopWithoutParameters
  344.         db $45
  345. endmacro
  346.  
  347. macro AllocateAndInitObjTilesOrUseExistingTiles wLen, pSrc
  348.         db $46
  349.         dw {wLen}
  350.         dl {pSrc}
  351. endmacro
  352.  
  353. macro AllocateAndInitObjPaletteOrUseExistingPalette pSrc
  354.         db $47
  355.         dl {pSrc}
  356. endmacro
  357.  
  358. macro DmaObjTilesToVram wObjVramAddr, wOBjVramEnd, pSrc
  359.         db $48
  360.         dw {wObjVramAddr}, {wOBjVramEnd}
  361.         dl {pSrc}
  362. endmacro
  363.  
  364. macro SetObjPalette wObjPalIndex, wObjPalEnd, pSrc
  365.         db $49
  366.         dw {wObjPalIndex}, {wObjPalEnd}
  367.         dl {pSrc}
  368. endmacro
  369.  
  370. macro SramAddSubOrSetMoney bAction, vLower16bit, vMiddle16bit, vUpper16bit
  371.         db $4A
  372.         db {bAction}
  373.         dl {vLower16bit}, {vMiddle16bit}, {vUpper16bit}
  374. endmacro
  375.  
  376. macro SramUpdateChksumAndBackupCopy
  377.         db $4B
  378. endmacro
  379.  
  380. macro TestAndGotoIfNonzero vA, vB, pTarget
  381.         db $50
  382.         dl {vA}, {vB}, {pTarget}
  383. endmacro
  384.  
  385. macro TestAndGotoIfZero vA, vB, pTarget
  386.         db $51
  387.         dl {vA}, {vB}, {pTarget}
  388. endmacro
  389.  
  390. macro InitNineGeneralPurposePrivateVariables wA, wB, wC, wD, wE, wF, wG, wH, wI
  391.         db $52
  392.         dw {wA}, {wB}, {wC}, {wD}, {wE}, {wF}, {wG}, {wH}, {wI}
  393. endmacro
  394.  
  395. macro MultipleCreateThreadBySelectedTableEntries vFlags, vLimit, pPtrToTable
  396.         db $53
  397.         dl {vFlags}, {vLimit}, {pPtrToTable}
  398. endmacro
  399.  
  400. macro PrepareMultipleGosub
  401.         db $54
  402. endmacro
  403.  
  404. macro StrangeXYposMultiplyThenDivide wA, wB
  405.         db $55
  406.         dw {wA}, {wB}
  407. endmacro
  408.  
  409. macro BuggedForceXYposIntoScreenArea
  410.         db $56
  411. endmacro
  412.  
  413. macro Maths32bitAdd16bitMul100h vA, vB
  414.         db $57
  415.         dl {vA}, {vB}
  416. endmacro
  417.  
  418. macro Maths32bitSub16bitMul100h vA, vB
  419.         db $58
  420.         dl {vA}, {vB}
  421. endmacro
  422.  
  423. macro SoundApuUploadWithTimeout wTimeout, pPtrToPtrToData
  424.         db $59
  425.         dw {wTimeout}
  426.         dl {pPtrToPtrToData}
  427. endmacro
  428.  
  429. macro CallMachineCodeFunction pTarget
  430.         db $60
  431.         dl {pTarget}
  432. endmacro
  433.  
  434. macro SetTemporaryOffsetFor0AxxxxhVariables vOffset
  435.         db $61
  436.         dl {vOffset}
  437. endmacro
  438.  
  439. macro LoopNext
  440.         db $62
  441. endmacro
  442.  
  443. macro SetForcedBlankAndSleepOnce
  444.         db $63
  445. endmacro
  446.  
  447. macro ClearForcedBlankAndSleepOnce
  448.         db $64
  449. endmacro
  450.  
  451. macro AllocateAndInitObjPaletteAndObjTilesOrUseExistingOnes pSrc
  452.         db $65
  453.         dl {pSrc}
  454. endmacro
  455.  
  456. macro WriteBgTiles wBgNumber, pPtrTo16bitLenAnd24bitSrcPtr
  457.         db $66
  458.         dw {wBgNumber}
  459.         dl {pPtrTo16bitLenAnd24bitSrcPtr}
  460. endmacro
  461.  
  462. macro WritePalette pPtrTo16bitLenAnd24bitSrcPtr
  463.         db $67
  464.         dl {pPtrTo16bitLenAnd24bitSrcPtr}
  465. endmacro
  466.  
  467. macro WriteBgMap wBgNumber, pPtrTo16bitLenAnd24bitSrcPtr
  468.         db $68
  469.         dw {wBgNumber}
  470.         dl {pPtrTo16bitLenAnd24bitSrcPtr}
  471. endmacro
  472.  
  473. macro KillAllOtherThreads
  474.         db $69
  475. endmacro
  476.  
  477. macro MultipleGosubToSelectedTableEntries vFlags, pPtrToTable
  478.         db $6A
  479.         dl {vFlags}, {pPtrToTable}
  480. endmacro
  481.  
  482. macro AllocateAndInitBgPaletteTilesAndMap2 vX, vY, pPtrToThreePtrs, vBgMapSize
  483.         db $6B
  484.         dl {vX}, {vY}, {pPtrToThreePtrs}, {vBgMapSize}
  485. endmacro
  486.  
  487. macro DeallocateAllObjTilesAndObjPalettes
  488.         db $6C
  489. endmacro
  490.  
  491. macro BuggedSetBgParameters bBgNumber, pPtr, wXsize, wYsize, wUnused1, wUnused2
  492.         db $6D
  493.         db {bBgNumber}
  494.         dl {pPtr}
  495.         dw {wXsize}, {wYsize}
  496.         dw {wUnused1}, {wUnused2}
  497. endmacro
  498.  
  499. macro BuggedSetUnusedParameters bSomeNumber, pPtr, wX, wY
  500.         db $6E
  501.         db {bSomeNumber}
  502.         dl {pPtr}
  503.         dw {wX}, {wY}
  504. endmacro
  505.  
  506. macro BuggedChangeBgScrolling wX, wY
  507.         db $6F
  508.         dw {wX}, {wY}
  509. endmacro
  510.  
  511. macro PauseAllOtherThreads
  512.         db $70
  513. endmacro
  514.  
  515. macro UnPauseAllOtherThreads
  516.         db $71
  517. endmacro
  518.  
  519. macro GosubIfAccessedByPlayer pGosubTargetOrPeopleFolderID
  520.         db $72
  521.         dl {pGosubTargetOrPeopleFolderID}
  522. endmacro
  523.  
  524. macro Dma16kbyteObjTilesToTempBufferAt7F4000h
  525.         db $73
  526. endmacro
  527.  
  528. macro Dma16kbyteObjTilesFromTempBufferAt7F4000h
  529.         db $74
  530. endmacro
  531.  
  532. macro SetFixedPlayerGenderObjShape pSrc, wLen1, wLen2
  533.         db $75
  534.         dl {pSrc}
  535.         dw {wLen1}, {wLen2}
  536. endmacro
  537.  
  538. macro InstallPeopleIfSatelliteIsOnline
  539.         db $76
  540. endmacro
  541.  
  542. macro KillAllOtherThreadsAndGotoCrash
  543.         db $77
  544. endmacro
  545.  
  546. macro ZerofillBgBufferInWram vBgNumber
  547.         db $78
  548.         dl {vBgNumber}
  549. endmacro
  550.  
  551. macro ChangePtrToObjPriority vVariableToBePointedTo
  552.         db $79
  553.         dl {vVariableToBePointedTo}
  554. endmacro
  555.  
  556. macro ChangeObjVsBgPriority vPriorityBits
  557.         db $7A
  558.         dl {vPriorityBits}
  559. endmacro
  560.  
  561. macro SetXYposRelativeToParentThread vX, vY
  562.         db $7B
  563.         dl {vX}, {vY}
  564. endmacro
  565.  
  566. macro TransferObjTilesAndObjPaletteToVram pPtrToPtrsToPaletteAndTileInfo
  567.         db $7C
  568.         dl {pPtrToPtrsToPaletteAndTileInfo}
  569. endmacro
  570.  
  571. macro AllocateAndInitBgPaletteTilesAndMap1 vX, vY, pPtrToThreePtrs, vBgMapSize
  572.         db $7D
  573.         dl {vX}, {vY}, {pPtrToThreePtrs}, {vBgMapSize}
  574. endmacro
  575.  
  576. macro DrawMessageBoxAllAtOnce vWindowNumber, vDelay, vX, vY, pPtrToString
  577.         db $7E
  578.         dl {vWindowNumber}, {vDelay}, {vX}, {vY}, {pPtrToString}
  579. endmacro
  580.  
  581. //Extended Tokens
  582. macro CallKillAllMachineCodeThreads
  583.         db $60
  584.         dl $809225
  585. endmacro
  586.  
  587. macro CallGetTextLayerVramBase
  588.         db $60
  589.         dl $80B47D
  590. endmacro
  591.  
  592. macro CallClearBg3TextLayer
  593.         db $60
  594.         dl $80B91E
  595. endmacro
  596.  
  597. macro CallSetApuRelatedPtr
  598.         db $60
  599.         dl $818EF9
  600. endmacro
  601.  
  602. macro CallDrawMessageBoxCharByChar vWindowNumber, vDelay, vX, vY, pPtrToString
  603.         db $60
  604.         dl $818F06
  605.         dl {vWindowNumber}, {vDelay}, {vX}, {vY}, {pPtrToString}
  606. endmacro
  607.  
  608. macro CallDrawBlackCircleInLowerRightOfWindow
  609.         db $60
  610.         dl $818FF0
  611. endmacro
  612.  
  613. macro CallDisplayButton_A_ObjInLowerRightOfWindow
  614.         db $60
  615.         dl $81903D
  616. endmacro
  617.  
  618. macro CallSetGuiBorderScheme pAddr1, pAddr2
  619.         db $60
  620.         dl $81A508
  621.         dl {pAddr1}, {pAddr2}
  622. endmacro
  623.  
  624. macro CallSetTextWindowBoundaries wWindowNumber, bXpos, bYpos, bXsize, bYsize
  625.         db $60
  626.         dl $81A551
  627.         dw {wWindowNumber}
  628.         db {bXpos}, {bYpos}
  629.         db {bXsize}, {bYsize}
  630. endmacro
  631.  
  632. macro CallHideTextWindow wWindowNumber
  633.         db $60
  634.         dl $81A56E
  635.         dw {wWindowNumber}
  636. endmacro
  637.  
  638. macro CallSelectWindowBorder wWindowNumber, wBorder
  639.         db $60
  640.         dl $81A57B
  641.         dw {wWindowNumber}, {wBorder}
  642. endmacro
  643.  
  644. macro CallSelectTextColor wWindowNumber, bColor, bTileBank, bPalette
  645.         db $60
  646.         dl $81A59A
  647.         dw {wWindowNumber}
  648.         db {bColor}, {bTileBank}, {bPalette}
  649. endmacro
  650.  
  651. macro CallClearTextWindowDrawBorder wWindowNumber
  652.         db $60
  653.         dl $81A5C3
  654.         dw {wWindowNumber}
  655. endmacro
  656.  
  657. macro CallZoomInTextWindow wWindowNumber, wZoomType
  658.         db $60
  659.         dl $81A5D2
  660.         dw {wWindowNumber}, {wZoomType}
  661. endmacro
  662.  
  663. macro CallZoomOutTextWindow wWindowNumber, wZoomType
  664.         db $60
  665.         dl $81A603
  666.         dw {wWindowNumber}, {wZoomType}
  667. endmacro
  668.  
  669. macro CallSetGuiColorScheme pAddr
  670.         db $60
  671.         dl $81A634
  672.         dl {pAddr}
  673. endmacro
  674.  
  675. macro CallChangePaletteOfTextRow vX, vY, vWidth, vPalette
  676.         db $60
  677.         dl $81A65D
  678.         dl {vX}, {vY}
  679.         dl {vWidth}, {vPalette}
  680. endmacro
  681.  
  682. macro CallPeekMemory16bit vDest, pSource
  683.         db $60
  684.         dl $81A693
  685.         dl {vDest}, {pSource}
  686. endmacro
  687.  
  688. macro CallPokeMemory16bit vSource, pDest
  689.         db $60
  690.         dl $81A6B4
  691.         dl {vSource}, {pDest}
  692. endmacro
  693.  
  694. macro CallInitializeAndDeallocateAllObjTilesAndObjPalettes
  695.         db $60
  696.         dl $81C7D0
  697. endmacro
  698.  
  699. macro CallDeallocateAllObjs
  700.         db $60
  701.         dl $81C871
  702. endmacro
  703.  
  704. macro CallBackupObjPalette
  705.         db $60
  706.         dl $81CDF9
  707. endmacro
  708.  
  709. macro CallRestoreObjPalette
  710.         db $60
  711.         dl $81CE09
  712. endmacro
  713.  
  714. macro CallUploadPaletteVram pSource, wVramAddr, bPaletteIndex
  715.         db $60
  716.         dl $829699
  717.         dl {pSource}
  718.         dw {wVramAddr}
  719.         db {bPaletteIndex}
  720. endmacro
  721.  
  722. macro CallTestIfFolderExists
  723.         db $60
  724.         dl $88932F
  725. endmacro
  726.  
  727. macro CallTestIfDoor
  728.         db $60
  729.         dl $88D076
  730. endmacro
  731.  
  732. macro CallSelectPlayerAsSecondaryThread
  733.         db $60
  734.         dl $99D9A4
  735. endmacro
  736.  
  737. //Token Function Addresses
  738. define EnterTown $99D69A
  739. define DeallocMostBgPalettesAndBgTiles $828230
  740. define SetCursorShape0 $88C1C6
  741. define SetCursorShape1 $88C1D0
  742. define SetCursorShape2 $88C1E0
  743. define SetCursorShape3 $88C1EA
  744. define SetCursorShape4 $88C1F4
  745. define SetCursorShape5 $88C1FE
  746. define PauseSubThreadIfXYstepIsZero $99D8AB
  747. define MoveWithinX1andX2boundaries $99D8CD
  748. define MoveWithinY1andY2boundaries $99D903
  749.  
  750. define Person00 $93F3FF
  751. define Person01 $91E4A4
  752. define Person02 $91C091
  753. define Person03 $91EECC
  754. define Person04 $92DE59
  755. define Person2C $7F0000
  756. define Person2D $7F0004
  757.  
  758. define Custom $7F0008
  759.  
  760.  
  761. //Variable Types
  762. define var_imm $000000
  763. define var_imm_minus $FFFFFF
  764. define var_prv $010000
  765. define var_prv_minus $FEFFFF
  766. define var_glb $020000
  767. define var_glb_minus $FDFFFF
  768. define var_spc_w $030000
  769. define var_spc_rw $090000
  770. define var_spc_r $0A0000
  771.  
  772. //Pointer Types
  773. define ptr_normal $000000
  774. define ptr_token $F00000
  775.  
  776. define ptr_index0 $F10000
  777. define ptr_thrid0 $F30000
  778. define ptr_gblid0 $F40000
  779.  
  780. define ptr_index3 $F50000
  781. define ptr_thrid3 $F70000
  782. define ptr_gblid3 $F80000
  783.  
  784. define ptr_index6 $F90000
  785. define ptr_thrid6 $FB0000
  786. define ptr_gblid6 $FC0000
  787.  
  788. //Compare Types
  789. define cmp_less $0000
  790. define cmp_lessequ $0001
  791. define cmp_equ $0002
  792. define cmp_notequ $0003
  793. define cmp_great $0004
  794. define cmp_greatequ $0005
  795.  
  796. //Entrypoint Special Values for Token $00
  797. define ctlsub_pause $000000
  798. define ctlsub_unpause_obj $000001
  799. define ctlsub_pausenextframe $000002
  800. define ctlsub_pause_obj $000003
  801. define ctlsub_reset $000004
  802. define ctlsub_kill $000005
  803. define ctlsub_entrypoint $000000
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top