Commit 1d92429e15692474ab11957758a5113d73f086cd

Authored by Ozunaki
1 parent aac8f31e

corregido el error de org cuando no tiene operando

Showing 1 changed file with 1 additions and 1 deletions
practica4.py
... ... @@ -24,7 +24,7 @@ conloc=0
24 24  
25 25 def conloco(codop,operando,etiqueta):
26 26 global conloc
27   - if codop=='ORG' or codop=='org':
  27 + if (codop=='ORG' or codop=='org') and operando!='NULL':
28 28 conloc=int(operando)
29 29 DirectivasdeconstantesDeunbyte=['db', 'dc.b', 'fcb','DB', 'DC.B', 'FCB']#incrementa 1 el conloc
30 30 DirectivasdeconstantesDedosbytes=['dw', 'dc.w', 'fdb','DW', 'DC.W', 'FDB']#incrementa 2 elconloc
... ...