Skip to content

Print_int

Description

Displays integer

Usage

print_int [ptr], [len], [char]

note: ptr may be: (ptr), address, len: value char: value (DEFAFF is not restored)

Example 1

The value is from mynumber offset

  .include "telestrat.inc"
  .include "../orix-sdk/macros/SDK_print.mac"

  print_int mynumber, 2, 2
  rts

mynumber:
  .byt 12

Example 2

The value is from registers

  .include "telestrat.inc"
  .include "../orix-sdk/macros/SDK_print.mac"

  lda     #12 ; 12
  ldy     #00 ; 0 because the number is 12 (from A)
  print_int  ,2, 2 ; an arg is skipped because the number is from register
  rts

Call XDECIM xdecim


Last update: 2024-02-15