??? 03/06/06 15:34 Read: times |
#111375 - wotisit Responding to: ???'s previous message |
Jeff Dache said:
This is the code for the AVR I need to make it for the 8051
Rx: sbis PIND, 0 ; 01EB 9B80 rjmp Rx ; 01EC CFFE avr01ED: sbic PIND, 0 ; 01ED 9980 rjmp avr01ED ; 01EE CFFE ldi r25, 0x10 ; 01EF E190 avr01F0: dec r25 ; 01F0 959A brne avr01F0 ; 01F1 F7F1 ldi r16, 0x01 ; 01F2 E001 avr01F3: ldi r25, 0x40 ; 01F3 E490 avr01F4: dec r25 ; 01F4 959A brne avr01F4 ; 01F5 F7F1 in r24, PIND ; 01F6 B380 lsr r24 ; 01F7 9586 rol r16 ; 01F8 1F00 brsh avr01F3 ; 01F9 F7C8 com r16 ; 01FA 9500 nop ; 01FB 0000 ldi r25, 0x20 ; 01FC E290 avr01FD: dec r25 ; 01FD 959A brne avr01FD ; 01FE F7F1 avr01FF: sbis PIND, 0 ; 01FF 9B80 rjmp avr01FF ; 0200 CFFE ret ; 0201 9508 It looks nicer when preformatted - see Jon's document for newbies. Heh, if you want reverse engineer (whatever the reason is), you need to learn how to find out what it is supposed to do. But by then, you will also know how to write it from scratch, on any other platform... Jan Waclawek PS. It's a bit-banged UART receiever, but that won't help you too much if you don't know the answers to Erik's questions, either... |
Topic | Author | Date |
Bit by Bit | 01/01/70 00:00 | |
how about the full story | 01/01/70 00:00 | |
Re; | 01/01/70 00:00 | |
Then convert it | 01/01/70 00:00 | |
How to Convert it | 01/01/70 00:00 | |
wotisit | 01/01/70 00:00 | |
Standard Async? | 01/01/70 00:00 | |
RS232? | 01/01/70 00:00 | |
The answer is in the question | 01/01/70 00:00 | |
Re: | 01/01/70 00:00 | |
with what | 01/01/70 00:00 | |
Re: | 01/01/70 00:00 | |
not INNER working | 01/01/70 00:00 | |
this REALLY smells | 01/01/70 00:00 | |
good start | 01/01/70 00:00 | |
reverse-engineering | 01/01/70 00:00 | |
more likely a disassembly | 01/01/70 00:00 | |
Illegal ? | 01/01/70 00:00 | |
the disassembled chip most likely read c | 01/01/70 00:00 | |
Insufficient! | 01/01/70 00:00 | |
Wonderful, this is great | 01/01/70 00:00 | |
Up one level | 01/01/70 00:00 | |
already said? | 01/01/70 00:00 | |
Synchronously or asynchronously? | 01/01/70 00:00 | |
Re | 01/01/70 00:00 | |
If it keeps you happy... | 01/01/70 00:00 | |
of course it does | 01/01/70 00:00 | |
I give up! | 01/01/70 00:00 | |
Kai, how stupid we are | 01/01/70 00:00 | |
I want an electrified keyboard | 01/01/70 00:00 | |
Jez, don't you get it TO ALL NEWBIES | 01/01/70 00:00 | |
I'm touched!![]() | 01/01/70 00:00 |