On my architecture I need 3 instructions to do a call:
Add reg, pc, 2
Push reg
Br <label>
I could handle this in various places in the description file. However, I need a free register to temporarily hold the value to push. Is there a function available in the back end that will return a free register?
I know one solution is to dedicate a register for this. But that seems a waste of a reg (of which I have precious few).
Any insight is appreciated,
Erwin
Add reg, pc, 2
Push reg
Br <label>
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 295 |
Nodes: | 16 (2 / 14) |
Uptime: | 07:24:37 |
Calls: | 6,642 |
Calls today: | 2 |
Files: | 12,190 |
Messages: | 5,326,102 |