Motorola Axiom CMD11E1 Guía de usuario Pagina 39

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 101
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 38
3.5. YOUR SECOND FUNCTION 39
; restore the registers
PULX
PULB
PULA
RTS
;;;;;;;;;;;;;;;;;;;;;;;End: PRBINARY;;;;;;;;;;;;;;;;;;;;
3.5.1 Test your function
We can test the function by loading different values in the A register. The random
number generator we wrote first comes in useful here! Write the following program,
and test it by repeating the call to $C100 from the BUFFALO prompt.
;;;;;;;;;;;;;;;;;;;;;;;start of code ;;;;;;;;;;;;;;;;;;;;;;;;
;
; Standard buffalo equates
; Make sure you have ALL the equates in the file.
;
UCASE EQU $FFA0
WCHEK EQU $FFA3
DCHEK EQU $FFA6
INIT EQU $FFA9
INPUT EQU $FFAC
OUTPUT EQU $FFAF
OUTLHLF EQU $FFB2
OUTRHLF EQU $FFB5
OUTA EQU $FFB8
OUT1BYT EQU $FFBB
OUT1BSP EQU $FFBE
OUT2BSP EQU $FFC1
OUTCRLF EQU $FFC4
OUTSTRG EQU $FFC7
OUTSTRGO EQU $FFCA
INCHAR EQU $FFCD
VECINIT EQU $FFD0
ORG $C100
LDX #ABOUTME
JSR OUTSTRG
Vista de pagina 38
1 2 ... 34 35 36 37 38 39 40 41 42 43 44 ... 100 101

Comentarios a estos manuales

Sin comentarios