84PCE:Syscalls:0207C8: Difference between revisions

From WikiTI
Jump to navigationJump to search
PT (talk | contribs)
No edit summary
PT (talk | contribs)
 
(2 intermediate revisions by the same user not shown)
Line 7: Line 7:
'''Syscall Address:''' 0207C8h
'''Syscall Address:''' 0207C8h


Displays a string, with the length appended, pointed to by HL on the homescreen at the coordinates indicated by [[84PCE:RAM:D00595|curRow]] and [[84PCE:RAM:D00596|curCol]] in large font format.
Displays a string, with the length prepended, pointed to by HL on the homescreen at the coordinates indicated by [[84PCE:RAM:D00595|curRow]] and [[84PCE:RAM:D00596|curCol]] in large font format.


=== Inputs ===
=== Inputs ===
''See also: [[84PCE:Syscalls:0207B4|PutMap]]''
''See also: [[84PCE:Syscalls:0207B4|PutMap]]''
* HL : pointer to the start of the string, appended by the length, to be displayed
* HL : pointer to the start of the string, prepended by the length, to be displayed
* ([[84PCE:RAM:D00595|curRow]], [[84PCE:RAM:D00596|curCol]]) : coordinates of the first character of the string in rows and columns (not pixels)
* ([[84PCE:RAM:D00595|curRow]], [[84PCE:RAM:D00596|curCol]]) : coordinates of the first character of the string in rows and columns (not pixels)


=== Outputs ===
=== Outputs ===
* Text printed at ([[84PCE:RAM:D00595|curRow]], [[84PCE:RAM:D00596|curCol]]) on the homescreen.
* Text printed at ([[84PCE:RAM:D00595|curRow]], [[84PCE:RAM:D00596|curCol]]) on the homescreen.
* HL points to the character after the null terminator.
* HL points to the character after the string.
* ([[84PCE:RAM:D00595|curRow]]) and ([[84PCE:RAM:D00596|curCol]]) updated
* ([[84PCE:RAM:D00595|curRow]]) and ([[84PCE:RAM:D00596|curCol]]) updated


Line 22: Line 22:
''See also: [[84PCE:Syscalls:0207B4|PutMap]]''
''See also: [[84PCE:Syscalls:0207B4|PutMap]]''
* F
* F
=== Example ===
  call _HomeUp
  call _ClrLCDFull
  ld hl, StringToDisplay
  jp _PutPS
StringToDisplay:
  .db 12, "Hello World!"

Latest revision as of 11:46, 9 August 2016


Synopsis

Hypothesized Official Name: PutPS

Syscall Address: 0207C8h

Displays a string, with the length prepended, pointed to by HL on the homescreen at the coordinates indicated by curRow and curCol in large font format.

Inputs

See also: PutMap

  • HL : pointer to the start of the string, prepended by the length, to be displayed
  • (curRow, curCol) : coordinates of the first character of the string in rows and columns (not pixels)

Outputs

  • Text printed at (curRow, curCol) on the homescreen.
  • HL points to the character after the string.
  • (curRow) and (curCol) updated

Destroys

See also: PutMap

  • F

Example

  call _HomeUp
  call _ClrLCDFull
  ld hl, StringToDisplay
  jp _PutPS
StringToDisplay:
  .db 12, "Hello World!"