mirror of
https://git.k-space.ee/arti/vt1200.git
synced 2026-10-30 12:03:54 +02:00
13 lines
346 B
NASM
13 lines
346 B
NASM
; rel_a.asm -- reldemo caller: has a 32-bit data reference and an absolute call
|
|
; to a symbol defined in rel_b.asm.
|
|
.def _start
|
|
.ref ext_func
|
|
.ref ext_data
|
|
.text
|
|
_start:
|
|
movi ext_data, a0, L ; 32-bit direct reference (R-RELLONG)
|
|
move a0, @018F0000h, 1 ; fixed marker (not a relocation)
|
|
calla ext_func ; 32-bit absolute call
|
|
rets
|
|
.end
|