From 75e9c27ddad06906a10dddb1aad603fdc0ec4c17 Mon Sep 17 00:00:00 2001 From: andromeda Date: Mon, 23 Mar 2026 17:23:09 +0100 Subject: remove superfluous wrapper function --- twasm/asm/main.asm | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) (limited to 'twasm/asm/main.asm') diff --git a/twasm/asm/main.asm b/twasm/asm/main.asm index 7262a8f..a48c652 100644 --- a/twasm/asm/main.asm +++ b/twasm/asm/main.asm @@ -390,7 +390,8 @@ assemble: mov cx, di mov di, [.first_argument] mov si, cx - call get_direct_addressing_ModRM + mov dl, 11b + call get_ModRM ; al = ModR/M byte push rax mov al, [.pending_operator_opcode] @@ -546,26 +547,6 @@ get_tte_typed_metadata: and rax, 0xFF ret -; ------------------------------------------------------------------------------ -; get_direct_addressing_ModRM -; -; description: -; given 2 register tokens, returns the ModR/M byte in direct addressing -; (mod = 11b) mode -; -; parameters: -; di = token table entry `reg` -; si = token table entry `R/M` -; -; returned: -; al = ModR/M byte; the rest of rax is zeroed -; ------------------------------------------------------------------------------ - -get_direct_addressing_ModRM: - mov dl, 11b - call get_ModRM - ret - ; ------------------------------------------------------------------------------ ; get_ModRM ; @@ -1449,7 +1430,7 @@ elemb: ; djb2 ; ; description: -; gets the djb2 hash of a given string +; gets the 64-bit djb2 hash of a given string ; ; parameters: ; rdi = size of string -- cgit v1.3.1