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: | 113 |
Nodes: | 8 (1 / 7) |
Uptime: | 146:37:00 |
Calls: | 2,504 |
Calls today: | 1 |
Files: | 8,700 |
Messages: | 1,928,536 |