[Wisp-cvs] wisp/users/dig ia32.tran,1.2,1.3 tran.py,1.38,1.39
Status: Alpha
Brought to you by:
digg
From: <di...@us...> - 2003-04-22 12:47:04
|
Update of /cvsroot/wisp/wisp/users/dig In directory sc8-pr-cvs1:/tmp/cvs-serv8477 Modified Files: ia32.tran tran.py Log Message: added the // word Index: ia32.tran =================================================================== RCS file: /cvsroot/wisp/wisp/users/dig/ia32.tran,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- ia32.tran 16 Apr 2003 08:02:47 -0000 1.2 +++ ia32.tran 22 Apr 2003 12:46:57 -0000 1.3 @@ -11,6 +11,6 @@ :regs reg16 %ax %cx %dx %bx %sp %bp %si %di ; :regs reg8 %al %cl %dl %bl %ah %ch %dh %bh ; -lit :macro $int #xCD b, b, ; -reg32 lit :macro $mov swap minor #o270 + b, t, ; -lit :macro $push #x68 b, t, ; +// lit :macro $int #xCD b, b, ; +// reg32 lit :macro $mov swap minor #o270 + b, t, ; +// lit :macro $push #x68 b, t, ; Index: tran.py =================================================================== RCS file: /cvsroot/wisp/wisp/users/dig/tran.py,v retrieving revision 1.38 retrieving revision 1.39 diff -u -d -r1.38 -r1.39 --- tran.py 22 Apr 2003 12:36:54 -0000 1.38 +++ tran.py 22 Apr 2003 12:46:58 -0000 1.39 @@ -291,6 +291,9 @@ if not isinstance(a, Constant_Sum): a = Constant_Sum(a) if not isinstance(b, Constant_Sum): b = Constant_Sum(b) Regstack.append(a - b) +def clear (): + global Regstack + Regstack = [] def matchers (object): if isinstance(object, Class_Marker): @@ -411,6 +414,7 @@ '.bss': ('builtin', dot_bss, 0), '.data': ('builtin', dot_data, 0), '.text': ('builtin', dot_text, 0), + '//': ('builtin', clear, 0), ':macro': ('builtin', colon_macro, 0 | MA_PREFIX), ':regs': ('builtin', colon_regs, 0 | MA_PREFIX), 'align int': ('builtin', align, 1), |