a re for asm file???
jubafre at brturbo.com
jubafre at brturbo.com
Tue Oct 1 00:05:59 EDT 2002
i have a file.asm
LDA D1 ;fdsfsd
ADD D2 ;gfsf
STA D3 ;jhgfj
HLT ;jgh
D1: DB 3 ;7
D2: DB 2 ;876
D3: DB 0 ;jh
i don´t know to define a re to put in a list like this:
in x just the labels
x=['D1', 'D2','D3', '3','2','1]
IN Y JUST THE INSTRUCTIONS
Y=['LDA', 'ADD', 'HLT', 'DB','DB', 'DB']
how can i make this re to find the labels and the instructions
for a generic file.asm like the file above?????
Juliano Freitas
www.gebrasil.hpg.com.br
More information about the Python-list
mailing list