mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
8048: Avoid use of macro expansion
This commit is contained in:
@@ -9,10 +9,7 @@
|
||||
|
||||
|
||||
@ifdef INTERNAL_REGISTERS
|
||||
@define RegType variables
|
||||
@define SINGLE_REGISTER_BANK
|
||||
@else
|
||||
@define RegType names
|
||||
@endif
|
||||
|
||||
|
||||
@@ -67,8 +64,13 @@ define token aopword (16)
|
||||
define token ImmedByte (8) data=(0,7);
|
||||
define token AddrOne (8) addr8=(0,7);
|
||||
|
||||
attach $(RegType) rn [ R0 R1 R2 R3 R4 R5 R6 R7 ];
|
||||
attach $(RegType) ri [ R0 R1 ];
|
||||
@ifdef INTERNAL_REGISTERS
|
||||
attach variables rn [ R0 R1 R2 R3 R4 R5 R6 R7 ];
|
||||
attach variables ri [ R0 R1 ];
|
||||
@else
|
||||
attach names rn [ R0 R1 R2 R3 R4 R5 R6 R7 ];
|
||||
attach names ri [ R0 R1 ];
|
||||
@endif
|
||||
attach names dfb [ MB0 MB1 ];
|
||||
attach names bs [ RB0 RB1 ];
|
||||
attach names pp [ BUS P1 P2 _ ];
|
||||
|
||||
Reference in New Issue
Block a user