|
Subject: [stella] signed math From: Glenn Saunders <mos6507@xxxxxxxxxxx> Date: Wed, 28 Jan 2004 22:41:29 -0800 |
clc
lda fracvel
bmi .negvel
adc fracpos
sta fracpos
lda intpos
adc #0
; check for overflow & jump to staint
.negvel
adc fracpos
sta fracpos
lda intpos
adc #-1
; check for underflow & jump to .staint
.staint
sta intpos
---------------------------------------------------------------------------------------------- Archives (includes files) at http://www.biglist.com/lists/stella/archives/ Unsub & more at http://www.biglist.com/lists/stella/
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [stella] need 16-bit math for J, Eric Ball | Thread | Re: [stella] signed math, Thomas Jentzsch |
| Re: [stella] need 16-bit math for J, Eric Ball | Date | Re: [stella] signed math, Thomas Jentzsch |
| Month |