Skip to content

Commit

Permalink
Fetch pip Phase3
Browse files Browse the repository at this point in the history
  • Loading branch information
mnb27 authored Jun 21, 2020
1 parent 84671dd commit 89b9184
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions fetch1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
def fetch(each):
li = "{0:08b}".format(int(each[1], 16))

length = len(li)
i = 32 - length
lii = ''
while i > 0:
lii = lii + '0'
i = i - 1
lii = lii + li
# our lii contain binary string of length 32
if lii[25:32] == '1100111' or lii[25:32] == '1100011' or lii[25:32] == '1101111':
return lii
# globalss.PC_execution=globalss.PC_execution+4
return lii

0 comments on commit 89b9184

Please sign in to comment.