| | |
Correct me if i'm wrong pls.....
![]() |
•
•
Join Date: May 2009
Posts: 7
Reputation:
Solved Threads: 0
here is my Caesar cipher code, can u pls have a look at it and correct me if i'm wrong.
Assembly Syntax (Toggle Plain Text)
AREA text, CODE SWI_Exit EQU &11 SWI_WriteC EQU &0 ENTRY ADR r4, hello ADR r3, alpha ADR r2, key loop LDRB r0, [r4], #1 STRB r0, [r4], #1 CMP r0, #0 BNE check SWI_Exit 0x11 check LDRB r1, [r3], #1 STRB r1, [r3], #1 CMP r0, r1 BNE encrypt B loop encrypt LDRB r5, [r2], #1 STRB r5,[r2], #1 MOV r0, r5 STRB r0,[r4], #1 SWINE SWI_WriteC BEQ endP B loop hello DCB "THIS MESSEGE IS GOING TO BE ENCRYPTED ",0 alpha DCB "ABCDEFGHIJKLMNOPQRSTUVWXYZ",0 key DCB "XZYCJBTEKMGHONPEDCBAVWQLRU",0 endP MOV pc, lr ; return END
Last edited by j_cart007; May 7th, 2009 at 6:13 pm.
![]() |
Similar Threads
- Assigning Arrays (Visual Basic 4 / 5 / 6)
- Armada M700 (Troubleshooting Dead Machines)
- Pyramid...questioN?? (C)
- graphics.h with Borland C++ compiler (C++)
- help me pls!!!some of my functions doesn't work! (C)
- login (ASP)
- login check (ASP)
- pls i need help (C)
- Help complete typical question with for loops (C++)
Other Threads in the Assembly Forum
- Previous Thread: New to Win32 ASM programming
- Next Thread: Division in Assembly?
| Thread Tools | Search this Thread |





