Mercurial > hg > Members > kono > nitros9-code
view 3rdparty/customboots/boisy/testadd.a @ 3169:1ff3d7673e36
mc09 l2: bring sys/makefile in line with latest organisation for other platforms
Revise bootfiles/makefile to remove sysgo from bootfile - it can be
found on the root of the disk.
author | Neal Crook <foofoobedoo@gmail.com> |
---|---|
date | Mon, 17 Apr 2017 22:59:28 +0100 |
parents | 6bc8200fd0ba |
children |
line wrap: on
line source
tylg set $01 Prgrm+Objct atrv set $80+rev ReEnt+rev rev set $00 edition set 5 psect testadd_a,tylg,atrv,edition,200,start vsect a rmb 2 b rmb 2 endsect * capture two parameters start ldd #0000 std a,u std b,u * if no params, just go straight to multiplication lda ,x cmpa #C$CR beq go * get first number lbsr DEC_BIN std a,u leax ,y lbsr TO_NON_SP * if no second number, go straight to multiplication cmpb #C$CR beq go lbsr DEC_BIN std b,u go orcc #IntMasks top ldd a,u addd b,u bra top endsect