<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Mon, 19 Jul 2010 19:37:55 +0200
From   : rick@... (Rick Murray)
Subject: FileStore emulator 2010/07/18

On 19/07/2010 00:22, Rick Murray wrote:

>> http://www.heyrick.co.uk/econet/fs/emulator.html

Fixed the broken link, thanks Mark. :-)


I've uncovered a problem with ADC where it uses Or to add in the Carry 
flag one, where + would have been better. Mmmm...

I'm working on the math/binary ops test script, here's what I have so 
far, I hope you can work out what to do with it:
--8<--------
; =================
; binary logic tests
; =================

reset
memclr


; ADC
memset 20 ff
memset 21 01
regset a 1
memset 200 18  ; clc
memset 201 a9  ; lda #1
memset 202 1
memset 203 65  ; adc &20
memset 204 20
memset 205 85  ; sta &20
memset 206 20
memset 207 a9  ; lda #0
memset 208 0
memset 209 65  ; adc &21
memset 20a 21
memset 20b 85  ; sta &21
memset 20c 21
;                result should be 20 = 00, 21 = 02
exec
assert c = 0
cont
cont
cont
assert c = ff
cont
cont
cont
assert c = 0
assert m0020 = 0
assert m0021 = 2
--8<--------

Ho-hum, time to stop the fun and go to work. :-(

I'll be back for five (am) so let me know how much else I've screwed up!



Best wishes,

Rick.

-- 
Rick Murray, eeePC901 & ADSL WiFI'd into it, all ETLAs!
BBC B: DNFS, 2 x 5.25" floppies, EPROM prog, Acorn TTX
E01S FileStore, A3000/A5000/RiscPC/various PCs/blahblah...
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>