Inspiration
Microprocessors and how computing devices work
What it does
Calculates the area and perimeter of a rectangle
How we built it
Using sim8085
Code
LHLD 5500H XCHG LHLD 5510H DAD D PUSH H POP D MVI C, 02H DCR C L3: DAD D DCR C JNZ L3 MOV A, H STA 5530H MOV A, L STA 5531H LHLD 5500H SPHL LHLD 5510H XCHG LXI H, 0000H LXI B, 0000H L2: DAD SP JNC L1 INX B L1: DCX D MOV A, E ORA D JNZ L2 MOV A, H STA 5540H MOV A, L STA 5541H MOV L, C MOV H, B HLT
Built With
- 8085
Log in or sign up for Devpost to join the conversation.