No subject

Rene Ulrich reneulrich at atlas.cz
Thu Aug 30 13:52:05 CEST 2001


Mam takovou prosbicku.

Delate nekdo s Bascomem (prekladac basicu pro procesory rady 51) ?
Mam takovy problem.
Pri preruseni se mi resetuje ?

On Timer0 Intcasovac 
On Int0 Napetinula                                      ' skok do preruseni od casovace 0


   intcasovac:
               treba cpl p1.1
               return
   Napetinula:
                treba cpl P1.2
                return

kdyz se o to postaram v asembleru tak to slape:

On Timer0 Intcasovac Nosave
On Int0 Napetinula Nosave                                     

  Intcasovac:

                  $asm
               push acc
               push psw
               cpl p1.0
               Pop Acc
               pop psw
               reti
                $end Asm

   Napetinula:
               $asm
               push acc
               push psw
                cpl P1.2
               pop psw
               pop acc
               reti
               $end Asm               

Podle me to neuklada hodnoty acc a psw do zasobniku a pri navratu do dela neporadek. Bohuzel nevim proc.
Muze mi nekdo poradit ?

Rene Ulrich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.nethouse.cz/pipermail/hw-list/attachments/20010830/887bb014/attachment.htm


More information about the HW-list mailing list