mirror of
https://github.com/mikpe/pdp10-tools.git
synced 2026-01-24 11:22:52 +00:00
sim: sim_loader: convert entry point from byte to word address
This commit is contained in:
parent
b0b43b35ff
commit
d431e548b8
@ -132,7 +132,8 @@ byte_address_to_global_byte_pointer(ByteAddress) ->
|
||||
PS = 8#70 + (ByteAddress band 3),
|
||||
(PS bsl 30) bor Y.
|
||||
|
||||
load_phtab(_FP, Ehdr, _PhTab = [], _PhdrIx, _Mem) -> {ok, Ehdr#elf36_Ehdr.e_entry};
|
||||
load_phtab(_FP, Ehdr, _PhTab = [], _PhdrIx, _Mem) ->
|
||||
{ok, byte_address_to_global_word_address(Ehdr#elf36_Ehdr.e_entry)};
|
||||
load_phtab(FP, Ehdr, [Phdr | PhTab], PhdrIx, Mem) ->
|
||||
case load_phdr(FP, Phdr, PhdrIx, Mem) of
|
||||
ok -> load_phtab(FP, Ehdr, PhTab, PhdrIx + 1, Mem);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user