Seite 1 von 1

rdbyte

Verfasst: Di 2. Apr 2019, 11:32
von PIC18F2550
Hallo,

kann rdbyte bei der ausführung feststellen ob das Byte = 0 ist?

Code: Alles auswählen

  rdbyte data,addr  wz

Re: rdbyte

Verfasst: Di 2. Apr 2019, 17:07
von unick59
Hi Pic,
ja geht.
Auszug aus Propeller-Manual:

RDBYTE syncs to the Hub, reads the byte of main memory at Address, zero-extends it, and stores it into the Value register.
If the WZ effect is specified, the Z flag will be set (1) if the value read from main memory is zero. The NR effect can not be used with RDBYTE as that would change it to a WRBYTE instruction.

Gruß Uwe

Re: rdbyte

Verfasst: Di 2. Apr 2019, 18:54
von PIC18F2550
Danke.