flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Wct numeric system Goto page Previous 1, 2 |
Author |
|
MIHIP 08 Jul 2014, 14:38
JohnFound wrote: why someone have to make something only you need??? I very need this feature! Not only me need this! |
|||
08 Jul 2014, 14:38 |
|
MIHIP 13 Dec 2014, 11:23
Hello everybody.
Help me please to write include file for fasm (.inc) to use Word Octal numeric system in fasm (wct)! For example: hex: 100h = wct: 0xEAAw or 0xeaaw or 0xeAaw (not case sensitive) or $EAAw or 0EAAw All symbols in wct: A = 0 B = 1 C = 2 D = 3 E = 4 F = 5 G = 6 O = 7 Please, help me! |
|||
13 Dec 2014, 11:23 |
|
MIHIP 15 Dec 2014, 14:09
HELP ME, PLEASE!
|
|||
15 Dec 2014, 14:09 |
|
r22 16 Dec 2014, 15:27
I WILL HELP!
Code: var include = []; for(var i=0, end=65536; i < end; i++) { include.push( "0x" + i.toString(8).split("").map(function(i) { return ["A", "B", "C", "D", "E", "F", "G", "O"][parseInt(i)]; }).join("") + "w = " + i.toString()); } var blob = new Blob([include.join("\n")], {contentType:"text/plain"}); var tag = document.createElement("a"); tag.href = URL.createObjectURL(blob); tag.download = "wct.inc"; document.body.appendChild(tag); tag.click(); Run the above script in a modern browser JavaScript console or paste it into [url]JSFIDDLE.NET[/url]. You will get a WCT.INC file. Just make "end = 65536" bigger if you want bigger numbers. |
|||
16 Dec 2014, 15:27 |
|
MIHIP 17 Dec 2014, 13:41
r22 wrote: I WILL HELP! No, i want include file (.inc) for flat assembler, to rewrite to fast asm. PLEASE...[/b] |
|||
17 Dec 2014, 13:41 |
|
AsmGuru62 17 Dec 2014, 16:15
MIHIP:
Did you actually read the response from r22 in full? It says: "You will get a WCT.INC file.". |
|||
17 Dec 2014, 16:15 |
|
MIHIP 20 Dec 2014, 07:47
No, that is no what i needed!
Example: include 'wct.inc' mov ax,0xBACw or mov ax,0xbacw or mov ax, $EAAw Please, help me! |
|||
20 Dec 2014, 07:47 |
|
revolution 20 Dec 2014, 07:59
If this what you expect?
Code: ;... <inside 'wct.inc'> 0xBABw fix 101o 0xBACw fix 102o 0xBADw fix 103o ;... etc. <leaving 'wct.inc'> mov eax,0xBACw |
|||
20 Dec 2014, 07:59 |
|
MIHIP 20 Dec 2014, 11:14
revolution wrote: If this what you expect? Yes! I need this! Can you move it to forum 'macroinstructions'? |
|||
20 Dec 2014, 11:14 |
|
MIHIP 20 Dec 2014, 17:30
Help me to change this code! This is wrong!
For example: mov eax,$cdaw (w = wct), or mov ebx,0xCDAw or mov ax,cDaw! Not "@! mov ax, ! @oct CDF" as code at down: cod3b453 wrote: With some jiggergy-pokery you can treat the literal as a value via the string operator, then with the help of macros created by baldr for "inline" evaluation: Help me, please! |
|||
20 Dec 2014, 17:30 |
|
MIHIP 21 Dec 2014, 12:21
Please((
|
|||
21 Dec 2014, 12:21 |
|
r22 21 Dec 2014, 15:42
MIHIP wrote:
The script I gave you generates exactly this. You seem to be beyond help... |
|||
21 Dec 2014, 15:42 |
|
MIHIP 21 Dec 2014, 17:54
No(( I don't want this!
|
|||
21 Dec 2014, 17:54 |
|
baldr 21 Dec 2014, 22:27
|
|||
21 Dec 2014, 22:27 |
|
MIHIP 23 Dec 2014, 15:01
|
|||
23 Dec 2014, 15:01 |
|
Goto page Previous 1, 2 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.