Exact match. Not showing close matches.
PICList
Thread
'[SX]: IREAD instruction'
2002\05\27@070808
by
ISO-8859-1?Q?Ruben_J=F6nsson?=
|
Hello,
I have found a strange thing with the IREAD instruction in an
SX52 chip. When the IREAD is set up to read the word at address
$802 + the address of the IREAD instruction itself, it allways
returns $cff.
Could someone please test this and verify my results. Here is a
code snippet that demonstrates this:
DEVICE OSCXT2,BOR42,DRT18MS
FREQ 10_000_000
RESET Startup
org $0a
ROM_L DS 1
ROM_H DS 1
org 0
Startup
string_test
mov ROM_L,#(string & $ff)
mov ROM_H,#(string >> 8)
loop
mov w,ROM_H
mov m,w
mov w,ROM_L
iread
test w
snz
jmp $
; doesn't do anything usefull with w.
inc ROM_L
snz
inc ROM_H
jmp loop
org $800
string
dw 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',0
This is assmebled, programmed and single stepped with the SX-
Key Rev E.
The IREAD fails when it is reading the 'J' from the string. The
IREAD instruction is at address $007 and the 'J' is at address
$809.
==============================
Ruben Jvnsson
AB Liros Electronic
Box 9124, 200 39 Malmv, Sweden
TEL INT +46 40142078
FAX INT +46 40947388
spam_OUTrubenTakeThisOuT
pp.sbbs.se
==============================
--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads
2002\05\27@121001
by
James Newton, webmaster
More... (looser matching)
- Last day of these posts
- In 2002
, 2003 only
- Today
- New search...