Difference between revisions of "83Plus:BCALLs:47DD"

From WikiTI
Jump to: navigation, search
(Created page with '_darkLine 47DD - _darkLine == Synopsis == '''Official name:''' _darkLine '''BCALL address:''' 47DD Draw…')
 
 
Line 1: Line 1:
[[Category:83Plus:BCALLs:By Name|_darkLine]]
+
[[Category:83Plus:BCALLs:By Name|DarkLine]]
[[Category:83Plus:BCALLs:By Address|47DD - _darkLine]]
+
[[Category:83Plus:BCALLs:By Address|47DD - DarkLine]]
 
== Synopsis ==
 
== Synopsis ==
'''Official name:''' _darkLine
+
'''Official name:''' DarkLine
  
 
'''BCALL address:''' 47DD
 
'''BCALL address:''' 47DD
Line 26: Line 26:
 
  <nowiki> ld bc,$003F
 
  <nowiki> ld bc,$003F
 
  ld de,$5F00
 
  ld de,$5F00
  b_call _darkLine
+
  b_call DarkLine
 
  ret</nowiki>
 
  ret</nowiki>

Latest revision as of 15:45, 3 August 2012

Synopsis

Official name: DarkLine

BCALL address: 47DD

Draws a line on the main screen.

Inputs

  • B : first point column
  • C : first point row
  • D : second point column
  • E : second point row

Outputs

None.

Destroys

None.

Comments

A line starting on (B,C) and ending on (D,E) is drawn on the main screen, which means that zoom is not applied. All registers are preserved. (0,0) is the bottom left hand corner and (95,63) the top right hand corner.

Example

 ld bc,$003F
 ld de,$5F00
 b_call DarkLine
 ret