*************************************************** * * EE 347 Students, this is part of the routine that I will use to test your * factoral program. Your program MUST be RECURSIVE (it must call itself, as * stated in the lab requirements). You may NOT just do this in a loop! * * * Note: Version of sim68 that came in Huangs book does not clear carry properly * after ADCA. This version uses ADCB instead to avoid that issue, and should * work correctly under both Sim68 and the Axiom boards * Sim68 also doesn't STY IND,X so I used D instead BUFF EQU $E000 ; For Buffalo Monitor * * DRVR - driver routine to call and test FCTRL * ORG $2000 DRVR NOP ; test driver for simulator LDS #$7FFF ; actually, do NOT comment this line out to run under Buffalo LDAA #$00 BSR FCTRL NOP LDAA #$01 BSR FCTRL NOP NOP LDAA #$02 BSR FCTRL NOP NOP LDAA #$03 BSR FCTRL NOP NOP LDAA #$04 BSR FCTRL NOP NOP LDAA #$05 BSR FCTRL NOP NOP LDAA #$06 BSR FCTRL NOP NOP LDAA #$07 BSR FCTRL NOP NOP LDAA #$08 BSR FCTRL NOP NOP LDAA #$09 BSR FCTRL NOP NOP LDAA #$0A BSR FCTRL NOP NOP LDAA #$0B BSR FCTRL NOP NOP etc, etc, etc...