-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Support for While(Loop) Statements in HLL
- Loading branch information
1 parent
47ee3e2
commit 3cf19f5
Showing
10 changed files
with
173 additions
and
59 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,5 +1,13 @@ | ||
259 1 | ||
260 2 | ||
261 3 | ||
264 10 | ||
265 100 | ||
262 1 | ||
263 1 | ||
264 1 | ||
265 1 | ||
266 1 | ||
267 1 | ||
268 11 | ||
270 1 | ||
272 1 | ||
274 1 | ||
276 1 | ||
278 1 | ||
280 1 |
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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
c 256 | ||
b 257 | ||
a 258 | ||
k 259 | ||
j 260 | ||
i 261 |
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 |
---|---|---|
@@ -1,29 +1,58 @@ | ||
LOAD R7 259 R2 | ||
LOAD R7 262 R2 | ||
STORE R7 261 R2 | ||
LOAD R7 263 R2 | ||
STORE R7 260 R2 | ||
LOAD R7 264 R2 | ||
STORE R7 259 R2 | ||
LOAD R7 265 R2 | ||
STORE R7 258 R2 | ||
LOAD R7 260 R2 | ||
LOAD R7 266 R2 | ||
STORE R7 257 R2 | ||
LOAD R7 261 R2 | ||
LOAD R7 267 R2 | ||
STORE R7 256 R2 | ||
LOAD R1 258 R2 | ||
LOAD R3 257 R2 | ||
LOAD R1 261 R2 | ||
LOAD R3 268 R2 | ||
LT R1 R1 R3 | ||
STORE R1 262 R2 | ||
LOAD R7 262 R2 | ||
MVI R6 28 | ||
STORE R1 269 R2 | ||
LOAD R7 269 R2 | ||
MVI R6 57 | ||
JZ R7 R6 | ||
LOAD R1 261 R2 | ||
LOAD R3 270 R2 | ||
ADD R1 R1 R3 | ||
STORE R1 271 R2 | ||
LOAD R7 271 R2 | ||
STORE R7 261 R2 | ||
LOAD R1 260 R2 | ||
LOAD R3 272 R2 | ||
ADD R1 R1 R3 | ||
STORE R1 273 R2 | ||
LOAD R7 273 R2 | ||
STORE R7 260 R2 | ||
LOAD R1 259 R2 | ||
LOAD R3 274 R2 | ||
ADD R1 R1 R3 | ||
STORE R1 275 R2 | ||
LOAD R7 275 R2 | ||
STORE R7 259 R2 | ||
LOAD R1 258 R2 | ||
LOAD R3 276 R2 | ||
ADD R1 R1 R3 | ||
STORE R1 277 R2 | ||
LOAD R7 277 R2 | ||
STORE R7 258 R2 | ||
LOAD R1 257 R2 | ||
LOAD R3 256 R2 | ||
LT R1 R1 R3 | ||
STORE R1 263 R2 | ||
LOAD R7 263 R2 | ||
MVI R6 24 | ||
JZ R7 R6 | ||
LOAD R7 264 R2 | ||
LOAD R3 278 R2 | ||
ADD R1 R1 R3 | ||
STORE R1 279 R2 | ||
LOAD R7 279 R2 | ||
STORE R7 257 R2 | ||
MVI R6 24 | ||
JUMP R6 | ||
LOAD R7 265 R2 | ||
LOAD R1 256 R2 | ||
LOAD R3 280 R2 | ||
ADD R1 R1 R3 | ||
STORE R1 281 R2 | ||
LOAD R7 281 R2 | ||
STORE R7 256 R2 | ||
MVI R6 28 | ||
MVI R6 12 | ||
JUMP R6 | ||
HLT |
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 |
---|---|---|
@@ -1,35 +1,60 @@ | ||
LOAD R7 259 R2 | ||
LOAD R7 262 R2 | ||
STORE R7 261 R2 | ||
LOAD R7 263 R2 | ||
STORE R7 260 R2 | ||
LOAD R7 264 R2 | ||
STORE R7 259 R2 | ||
LOAD R7 265 R2 | ||
STORE R7 258 R2 | ||
LOAD R7 260 R2 | ||
LOAD R7 266 R2 | ||
STORE R7 257 R2 | ||
LOAD R7 261 R2 | ||
LOAD R7 267 R2 | ||
STORE R7 256 R2 | ||
LOAD R1 258 R2 | ||
LOAD R3 257 R2 | ||
L0 : | ||
LOAD R1 261 R2 | ||
LOAD R3 268 R2 | ||
LT R1 R1 R3 | ||
STORE R1 262 R2 | ||
LOAD R7 262 R2 | ||
MVI R6 L0 | ||
STORE R1 269 R2 | ||
LOAD R7 269 R2 | ||
MVI R6 L1 | ||
JZ R7 R6 | ||
LOAD R1 261 R2 | ||
LOAD R3 270 R2 | ||
ADD R1 R1 R3 | ||
STORE R1 271 R2 | ||
LOAD R7 271 R2 | ||
STORE R7 261 R2 | ||
LOAD R1 260 R2 | ||
LOAD R3 272 R2 | ||
ADD R1 R1 R3 | ||
STORE R1 273 R2 | ||
LOAD R7 273 R2 | ||
STORE R7 260 R2 | ||
LOAD R1 259 R2 | ||
LOAD R3 274 R2 | ||
ADD R1 R1 R3 | ||
STORE R1 275 R2 | ||
LOAD R7 275 R2 | ||
STORE R7 259 R2 | ||
LOAD R1 258 R2 | ||
LOAD R3 276 R2 | ||
ADD R1 R1 R3 | ||
STORE R1 277 R2 | ||
LOAD R7 277 R2 | ||
STORE R7 258 R2 | ||
LOAD R1 257 R2 | ||
LOAD R3 256 R2 | ||
LT R1 R1 R3 | ||
STORE R1 263 R2 | ||
LOAD R7 263 R2 | ||
MVI R6 L2 | ||
JZ R7 R6 | ||
LOAD R7 264 R2 | ||
LOAD R3 278 R2 | ||
ADD R1 R1 R3 | ||
STORE R1 279 R2 | ||
LOAD R7 279 R2 | ||
STORE R7 257 R2 | ||
MVI R6 L3 | ||
JUMP R6 | ||
L2 : | ||
|
||
L3 : | ||
LOAD R7 265 R2 | ||
LOAD R1 256 R2 | ||
LOAD R3 280 R2 | ||
ADD R1 R1 R3 | ||
STORE R1 281 R2 | ||
LOAD R7 281 R2 | ||
STORE R7 256 R2 | ||
MVI R6 L1 | ||
MVI R6 L0 | ||
JUMP R6 | ||
L0 : | ||
|
||
L1 : | ||
HLT |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
v2.0 raw | ||
11C40207 19C40205 11C40209 19C40203 11C4020B 19C40201 10440205 10C40203 58423000 1844020D 11C4020D 41800039 680E6000 10440203 10C40201 58423000 1844020F 11C4020F 41800031 680E6000 11C40211 19C40203 41800031 60006000 11C40213 19C40201 41800039 60006000 00000000 230*0 1 2 3 2*0 A 64 | ||
11C4020D 19C4020B 11C4020F 19C40209 11C40211 19C40207 11C40213 19C40205 11C40215 19C40203 11C40217 19C40201 1044020B 10C40219 58423000 1844021B 11C4021B 41800073 680E6000 1044020B 10C4021D 20423000 1844021F 11C4021F 19C4020B 10440209 10C40221 20423000 18440223 11C40223 19C40209 10440207 10C40225 20423000 18440227 11C40227 19C40207 10440205 10C40229 20423000 1844022B 11C4022B 19C40205 10440203 10C4022D 20423000 1844022F 11C4022F 19C40203 10440201 10C40231 20423000 18440233 11C40233 19C40201 41800019 60006000 00000000 204*0 1 1 1 1 1 1 B 1*0 1 1*0 1 1*0 1 1*0 1 1*0 1 1*0 1 |
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
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
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
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
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