LSP 1st: Difference between revisions

From NeoGeo Development Wiki
Jump to navigation Jump to search
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
== LSP_1ST ($C004C8): Clear sprites ==
=LSP_1ST ($C004C8): Clear sprites=


'''Warning:''' register contents aren't preserved ! (Uses D0, D1, and A0)
'''Warning:'''
* Register contents aren't preserved ! (Uses D0, D1, and A0)
* VRAM address is modified


*All shrinking values are set to max (all [[sprites|SCB2]] to $0FFF)
This [[system ROM]] call performs the following operations:
*All heights set to 0 and Y positions set to 496 (all [[sprites|SCB3]] to $0000)
 
*All X positions are set to 380 (all [[sprites|SCB4]] to $BE00)
* All [[Sprite_shrinking|shrinking]] values are set to max (all [[sprites|SCB2]] is set to $0FFF)
*The map of sprite #0 is set to tiles # $FF ([[sprites|SCB1]] $0000~$0040 to $00FF,$0000)
* All sprite heights are set to 0 and Y positions set to 496 (all [[sprites|SCB3]] is set to $0000)
* All sprite X positions are set to 380 (all [[sprites|SCB4]] is set to $BE00)
* The map of sprite #0 is set to tiles # $FF ([[sprites|SCB1]] $0000~$0040 to $00FF,$0000)


[[Category:BIOS calls]]
[[Category:BIOS calls]]

Latest revision as of 03:34, 27 April 2018

LSP_1ST ($C004C8): Clear sprites

Warning:

  • Register contents aren't preserved ! (Uses D0, D1, and A0)
  • VRAM address is modified

This system ROM call performs the following operations:

  • All shrinking values are set to max (all SCB2 is set to $0FFF)
  • All sprite heights are set to 0 and Y positions set to 496 (all SCB3 is set to $0000)
  • All sprite X positions are set to 380 (all SCB4 is set to $BE00)
  • The map of sprite #0 is set to tiles # $FF (SCB1 $0000~$0040 to $00FF,$0000)