Simplified file structure
This commit is contained in:
parent
cacee7260a
commit
a466281307
219 changed files with 453 additions and 457 deletions
14
src/asm/Pointer.go
Normal file
14
src/asm/Pointer.go
Normal file
|
@ -0,0 +1,14 @@
|
|||
package asm
|
||||
|
||||
// Address represents a memory address.
|
||||
type Address = int32
|
||||
|
||||
// Pointer stores a relative memory address that we can later turn into an absolute one.
|
||||
// Position: The machine code offset where the address was inserted.
|
||||
// Resolve: The function that will return the final address.
|
||||
type Pointer struct {
|
||||
Resolve func() Address
|
||||
Position Address
|
||||
OpSize uint8
|
||||
Size uint8
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue