LSP 1st: Difference between revisions

From NeoGeo Development Wiki
Jump to navigation Jump to search
m (Created page with "== BIOSF_CLEARSPR ($C004C8): Clear sprites == '''Warning:''' register contents aren't preserved ! (Uses D0, D1, and A0) *All maps are cleared with tile # $FF, no special at…")
 
mNo edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== [[BIOSF_CLEARSPR]] ($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 maps are cleared with tile # $FF, no special attributes (all [[sprites|SCB1]] to $00FF,$0000)
This [[system ROM]] call performs the following operations:
*All shrinking values are set to max (all [[sprites|SCB2]] to $0FFF)
 
*All heights cleared to 0 (all [[sprites|SCB3]] to $0000)
* All [[Sprite_shrinking|shrinking]] values are set to max (all [[sprites|SCB2]] is set to $0FFF)
*All X positions are set to 380 (all [[sprites|SCB4]] to $BE00)
* 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)