-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
90 changed files
with
2,791 additions
and
3 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
A51 MACRO ASSEMBLER PROG1 01/16/2013 09:01:56 PAGE 1 | ||
|
||
|
||
MACRO ASSEMBLER A51 V8.02b | ||
OBJECT MODULE PLACED IN Prog1.OBJ | ||
ASSEMBLER INVOKED BY: C:\Program_Files\Keil\C51\BIN\A51.EXE Prog1.asm SET(SMALL) DEBUG EP | ||
|
||
LOC OBJ LINE SOURCE | ||
|
||
0000 E544 1 mov a, 44h | ||
0002 F540 2 mov 40h, a | ||
0004 F541 3 mov 41h, a | ||
0006 F542 4 mov 42h, a | ||
0008 F543 5 mov 43h, a | ||
6 end | ||
A51 MACRO ASSEMBLER PROG1 01/16/2013 09:01:56 PAGE 2 | ||
|
||
SYMBOL TABLE LISTING | ||
------ ----- ------- | ||
|
||
|
||
N A M E T Y P E V A L U E ATTRIBUTES | ||
|
||
|
||
|
||
REGISTER BANK(S) USED: 0 | ||
|
||
|
||
ASSEMBLY COMPLETE. 0 WARNING(S), 0 ERROR(S) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
; 44h to 40h - 43h direct addressing | ||
mov a, 44h | ||
mov 40h, a | ||
mov 41h, a | ||
mov 42h, a | ||
mov 43h, a | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
A51 MACRO ASSEMBLER PROG2 01/16/2013 09:10:52 PAGE 1 | ||
|
||
|
||
MACRO ASSEMBLER A51 V8.02b | ||
OBJECT MODULE PLACED IN Prog2.OBJ | ||
ASSEMBLER INVOKED BY: C:\Program_Files\Keil\C51\BIN\A51.EXE Prog2.asm SET(SMALL) DEBUG EP | ||
|
||
LOC OBJ LINE SOURCE | ||
|
||
0000 8544F0 1 mov b, 44h | ||
0003 7840 2 mov r0, #40h | ||
0005 7903 3 mov r1, #3 | ||
0007 4 loop: | ||
0007 A6F0 5 mov @r0, b | ||
0009 08 6 inc r0 | ||
000A D9FB 7 djnz r1, loop | ||
8 end | ||
A51 MACRO ASSEMBLER PROG2 01/16/2013 09:10:52 PAGE 2 | ||
|
||
SYMBOL TABLE LISTING | ||
------ ----- ------- | ||
|
||
|
||
N A M E T Y P E V A L U E ATTRIBUTES | ||
|
||
B. . . . . . . . . D ADDR 00F0H A | ||
LOOP . . . . . . . C ADDR 0007H A | ||
|
||
|
||
REGISTER BANK(S) USED: 0 | ||
|
||
|
||
ASSEMBLY COMPLETE. 0 WARNING(S), 0 ERROR(S) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
mov b, 44h | ||
mov r0, #40h | ||
mov r1, #4 | ||
loop: | ||
mov @r0, b | ||
inc r0 | ||
djnz r1, loop | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
A51 MACRO ASSEMBLER PROG3 01/18/2013 18:07:56 PAGE 1 | ||
|
||
|
||
MACRO ASSEMBLER A51 V8.02b | ||
OBJECT MODULE PLACED IN Prog3.OBJ | ||
ASSEMBLER INVOKED BY: C:\Program_Files\Keil\C51\BIN\A51.EXE Prog3.asm SET(SMALL) DEBUG EP | ||
|
||
LOC OBJ LINE SOURCE | ||
|
||
0000 1 org 0h | ||
0000 900300 2 mov dptr, #300h | ||
0003 7400 3 mov a, #0 | ||
0005 93 4 movc a, @a+dptr | ||
0006 F8 5 mov r0, a | ||
0007 7401 6 mov a, #1 | ||
0009 93 7 movc a, @a+dptr | ||
000A F9 8 mov r1, a | ||
000B 7402 9 mov a, #2 | ||
000D 93 10 movc a, @a+dptr | ||
000E FA 11 mov r2, a | ||
0300 12 org 300h | ||
0300 4E4954 13 db "NIT" | ||
14 end | ||
A51 MACRO ASSEMBLER PROG3 01/18/2013 18:07:56 PAGE 2 | ||
|
||
SYMBOL TABLE LISTING | ||
------ ----- ------- | ||
|
||
|
||
N A M E T Y P E V A L U E ATTRIBUTES | ||
|
||
|
||
|
||
REGISTER BANK(S) USED: 0 | ||
|
||
|
||
ASSEMBLY COMPLETE. 0 WARNING(S), 0 ERROR(S) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
org 0h | ||
mov dptr, #300h | ||
mov a, #0 | ||
movc a, @a+dptr | ||
mov r0, a | ||
mov a, #1 | ||
movc a, @a+dptr | ||
mov r1, a | ||
mov a, #2 | ||
movc a, @a+dptr | ||
mov r2, a | ||
org 300h | ||
db "NIT" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
A51 MACRO ASSEMBLER PROG4 01/18/2013 18:15:05 PAGE 1 | ||
|
||
|
||
MACRO ASSEMBLER A51 V8.02b | ||
OBJECT MODULE PLACED IN Prog4.OBJ | ||
ASSEMBLER INVOKED BY: C:\Program_Files\Keil\C51\BIN\A51.EXE Prog4.asm SET(SMALL) DEBUG EP | ||
|
||
LOC OBJ LINE SOURCE | ||
|
||
0000 1 org 0h | ||
0000 900200 2 mov dptr, #200h | ||
0003 7800 3 mov r0, #0 | ||
0005 7940 4 mov r1, #40h | ||
0007 5 loop: | ||
0007 E8 6 mov a, r0 | ||
0008 93 7 movc a, @a+dptr | ||
0009 6005 8 jz p_end | ||
000B F7 9 mov @r1, a | ||
000C 08 10 inc r0 | ||
000D 09 11 inc r1 | ||
000E 80F7 12 sjmp loop | ||
0010 13 p_end: | ||
0200 14 org 200h | ||
0200 53756268 15 db "Subhajit Sahu", 0 | ||
0204 616A6974 | ||
0208 20536168 | ||
020C 7500 | ||
16 end | ||
A51 MACRO ASSEMBLER PROG4 01/18/2013 18:15:05 PAGE 2 | ||
|
||
SYMBOL TABLE LISTING | ||
------ ----- ------- | ||
|
||
|
||
N A M E T Y P E V A L U E ATTRIBUTES | ||
|
||
LOOP . . . . . . . C ADDR 0007H A | ||
P_END. . . . . . . C ADDR 0010H A | ||
|
||
|
||
REGISTER BANK(S) USED: 0 | ||
|
||
|
||
ASSEMBLY COMPLETE. 0 WARNING(S), 0 ERROR(S) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
org 0h | ||
mov dptr, #200h | ||
mov r0, #0 | ||
mov r1, #40h | ||
loop: | ||
mov a, r0 | ||
movc a, @a+dptr | ||
jz p_end | ||
mov @r1, a | ||
inc r0 | ||
inc r1 | ||
sjmp loop | ||
p_end: | ||
org 200h | ||
db "Subhajit Sahu", 0 | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
; Multiplication using repeated addition | ||
mov r0, #4 | ||
mov r1, #2 | ||
mov a, #0 | ||
mov r4, #0 | ||
|
||
loop: | ||
add a, r0 | ||
jnc no_carry | ||
inc r4 | ||
no_carry: | ||
djnz loop | ||
mov r3, a | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
A51 MACRO ASSEMBLER ACT1 01/23/2013 08:36:03 PAGE 1 | ||
|
||
|
||
MACRO ASSEMBLER A51 V8.02b | ||
OBJECT MODULE PLACED IN Act1.OBJ | ||
ASSEMBLER INVOKED BY: C:\Program_Files\Keil\C51\BIN\A51.EXE Act1.asm SET(SMALL) DEBUG EP | ||
|
||
LOC OBJ LINE SOURCE | ||
|
||
0000 1 org 0h | ||
0000 7840 2 mov r0, #40h | ||
0002 7960 3 mov r1, #60h | ||
0004 7B05 4 mov r3, #5 | ||
0006 5 loop: | ||
0006 E6 6 mov a, @r0 | ||
0007 87F0 7 mov b, @r1 | ||
0009 A6F0 8 mov @r0, b | ||
000B F7 9 mov @r1, a | ||
000C 08 10 inc r0 | ||
000D 09 11 inc r1 | ||
000E DBF6 12 djnz r3, loop | ||
13 end | ||
A51 MACRO ASSEMBLER ACT1 01/23/2013 08:36:03 PAGE 2 | ||
|
||
SYMBOL TABLE LISTING | ||
------ ----- ------- | ||
|
||
|
||
N A M E T Y P E V A L U E ATTRIBUTES | ||
|
||
B. . . . . . . . . D ADDR 00F0H A | ||
LOOP . . . . . . . C ADDR 0006H A | ||
|
||
|
||
REGISTER BANK(S) USED: 0 | ||
|
||
|
||
ASSEMBLY COMPLETE. 0 WARNING(S), 0 ERROR(S) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
org 0h | ||
mov r0, #40h | ||
mov r1, #60h | ||
mov r3, #5 | ||
loop: | ||
mov a, @r0 | ||
mov b, @r1 | ||
mov @r0, b | ||
mov @r1, a | ||
inc r0 | ||
inc r1 | ||
djnz r3, loop | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
A51 MACRO ASSEMBLER ACT2 01/23/2013 09:18:43 PAGE 1 | ||
|
||
|
||
MACRO ASSEMBLER A51 V8.02b | ||
OBJECT MODULE PLACED IN Act2.OBJ | ||
ASSEMBLER INVOKED BY: C:\Program_Files\Keil\C51\BIN\A51.EXE Act2.asm SET(SMALL) DEBUG EP | ||
|
||
LOC OBJ LINE SOURCE | ||
|
||
0000 1 org 0h | ||
0000 7840 2 mov r0, #40h | ||
0002 7B05 3 mov r3, #5 | ||
0004 86F0 4 mov b, @r0 | ||
0006 5 loop: | ||
0006 E5F0 6 mov a, b | ||
0008 96 7 subb a, @r0 | ||
0009 5002 8 jnc is_smaller | ||
000B 86F0 9 mov b, @r0 | ||
000D 10 is_smaller: | ||
000D 08 11 inc r0 | ||
000E DBF6 12 djnz r3, loop | ||
0010 85F0A0 13 mov p2, b | ||
14 end | ||
A51 MACRO ASSEMBLER ACT2 01/23/2013 09:18:43 PAGE 2 | ||
|
||
SYMBOL TABLE LISTING | ||
------ ----- ------- | ||
|
||
|
||
N A M E T Y P E V A L U E ATTRIBUTES | ||
|
||
B. . . . . . . . . D ADDR 00F0H A | ||
IS_SMALLER . . . . C ADDR 000DH A | ||
LOOP . . . . . . . C ADDR 0006H A | ||
P2 . . . . . . . . D ADDR 00A0H A | ||
|
||
|
||
REGISTER BANK(S) USED: 0 | ||
|
||
|
||
ASSEMBLY COMPLETE. 0 WARNING(S), 0 ERROR(S) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
org 0h | ||
mov r0, #40h | ||
mov r3, #5 | ||
mov b, @r0 | ||
loop: | ||
mov a, b | ||
subb a, @r0 | ||
jnc is_smaller | ||
mov b, @r0 | ||
is_smaller: | ||
inc r0 | ||
djnz r3, loop | ||
mov p2, b | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
A51 MACRO ASSEMBLER ACT3 01/23/2013 10:04:44 PAGE 1 | ||
|
||
|
||
MACRO ASSEMBLER A51 V8.02b | ||
OBJECT MODULE PLACED IN Act3.OBJ | ||
ASSEMBLER INVOKED BY: C:\Program_Files\Keil\C51\BIN\A51.EXE Act3.asm SET(SMALL) DEBUG EP | ||
|
||
LOC OBJ LINE SOURCE | ||
|
||
0000 1 org 0h | ||
0000 7840 2 mov r0, #40h | ||
0002 7A04 3 mov r2, #4 | ||
0004 4 loop1: | ||
0004 86F0 5 mov b, @r0 | ||
0006 E8 6 mov a, r0 | ||
0007 FC 7 mov r4, a | ||
0008 EA 8 mov a, r2 | ||
0009 FB 9 mov r3, a | ||
000A E8 10 mov a, r0 | ||
000B F9 11 mov r1, a | ||
000C 09 12 inc r1 | ||
000D 13 loop2: | ||
000D E5F0 14 mov a, b | ||
000F 97 15 subb a, @r1 | ||
0010 4004 16 jc is_greater | ||
0012 87F0 17 mov b, @r1 | ||
0014 E9 18 mov a, r1 | ||
0015 FC 19 mov r4, a | ||
0016 20 is_greater: | ||
0016 09 21 inc r1 | ||
0017 DBF4 22 djnz r3, loop2 | ||
0019 EC 23 mov a, r4 | ||
001A F9 24 mov r1, a | ||
001B E6 25 mov a, @r0 | ||
001C F7 26 mov @r1, a | ||
001D A6F0 27 mov @r0, b | ||
001F 08 28 inc r0 | ||
0020 DAE2 29 djnz r2, loop1 | ||
30 end | ||
A51 MACRO ASSEMBLER ACT3 01/23/2013 10:04:44 PAGE 2 | ||
|
||
SYMBOL TABLE LISTING | ||
------ ----- ------- | ||
|
||
|
||
N A M E T Y P E V A L U E ATTRIBUTES | ||
|
||
B. . . . . . . . . D ADDR 00F0H A | ||
IS_GREATER . . . . C ADDR 0016H A | ||
LOOP1. . . . . . . C ADDR 0004H A | ||
LOOP2. . . . . . . C ADDR 000DH A | ||
|
||
|
||
REGISTER BANK(S) USED: 0 | ||
|
||
|
||
ASSEMBLY COMPLETE. 0 WARNING(S), 0 ERROR(S) |
Oops, something went wrong.