mirror of
https://github.com/gomson/TimothyLottes.github.io.git
synced 2026-08-04 14:48:49 +00:00
20 lines
623 B
HTML
20 lines
623 B
HTML
<html><head><link rel="stylesheet" href="style.css"></head><body><div class="page">
|
|
<h1>20160704 - Relative Addressing With XOR - Removing an Adder</h1>
|
|
<br>
|
|
|
|
Could be an interesting compromise: use XOR instead of ADD for relative addressing to remove an adder. Specifically,
|
|
<br>
|
|
<br>
|
|
<tt>Address = AddressRegister XOR Immediate</tt>
|
|
<br>
|
|
<br>
|
|
Forces the programmer to keep address register on some power of two alignment.
|
|
With caches and/or parallel access to banked memory, this would be a bad.
|
|
But likely fine for a core with a private memory, and code written in assembly.
|
|
|
|
|
|
</div></body></html>
|
|
|
|
|
|
|