Misplaced Pages

Draft:Hasm: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactively← Previous editNext edit →Content deleted Content addedVisualWikitext
Revision as of 00:48, 25 December 2024 editSamuelbuch (talk | contribs)29 edits added more← Previous edit Revision as of 00:50, 25 December 2024 edit undoWiiformii (talk | contribs)Extended confirmed users, Pending changes reviewers, Rollbackers29,467 editsm Typo fixing, typo(s) fixed: constrcuted → constructed, then → thanTag: AWBNext edit →
Line 13: Line 13:
| implementations = | implementations =
| dialects = | dialects =
| influenced_by = ] | influenced_by = ]
| operating_system = | operating_system =
| license = | license =
Line 19: Line 19:
| file_ext = .hasm .hsm | file_ext = .hasm .hsm
}} }}
The '''High asm''' or '''High level asm''' is an asm but constrcuted on top of nasm to be able code asm with some abstraction, can be used as ir to asm for compilers The '''High asm''' or '''High level asm''' is an asm but constructed on top of nasm to be able code asm with some abstraction, can be used as ir to asm for compilers



== syntax == == syntax ==
Line 61: Line 60:
exit c exit c
</syntaxhighlight> </syntaxhighlight>
since a is less then b, c is 0 since a is less than b, c is 0

==References==
{{Reflist}}

] ]

Revision as of 00:50, 25 December 2024

HASM
Designed byfirelabs-io
Developerfirelabs-io
First appeared2024; 0 years ago (2024)
Typing disciplineStrong typed
Filename extensions.hasm .hsm
Influenced by
Netwide Assembler

The High asm or High level asm is an asm but constructed on top of nasm to be able code asm with some abstraction, can be used as ir to asm for compilers

syntax

close to nasm but not nasm, here snippet of code for hello world

output(ELF64)
_main:
   $ spaces are not important
   $ yes it uses $ as comment
   string msg = "hello world!"
   $ strings is imultible
   call stdout msg
   exit 0

for comparasion you use command c a b where command can be more, less or equals

this case:

output(ELF64)
_main:
	int a = 2
	int b = 2
	int c = 0
	equal c a b
	exit c

since a and b is equal c is 1 (1 == true, 0 == false)

output(ELF64)
_main:
	int a = 1
	int b = 2
	int c = 0
	more c a b
	exit c

since a is less than b, c is 0

References

  1. "hasm". {{cite web}}: Text "assembly" ignored (help)
Category: