An open API service indexing awesome lists of open source software.

https://github.com/dosworld/hasm

Hascal x86 Assembler
https://github.com/dosworld/hasm

Last synced: 5 months ago
JSON representation

Hascal x86 Assembler

Awesome Lists containing this project

README

          

# Hasm
Hascal x86 Assembler

## Features
- Compile to x86 Machine Code
- Use Win32 Api
- Fast

## Get Started
```
hasm
```

## Syntax
go to [Grammer Help Page](https://github.com/hascal/hasm/blob/main/Grammer%20Help/help.md)

## Examples

``` asm
.import
import Kernel32.dll WriteFile
import Kernel32.dll GetStdHandle

.var

string s1 "This is loop!"

byte STD_INPUT_HANDLE 0xf5
dword count 0x00000000

.code

:label1
push ^STD_INPUT_HANDLE
call getstdhandle

push 0x00 // lpOverlapped
push @count // lpNumberOfBytesWritten
push ^length(s1) // nNumberOfBytesToWrite
push @s1 // lpBuffer
push eax // hFile
call writefile
jmp label1
```
[More Examples...](https://github.com/hascal/hasm/tree/main/examples)

## ToDO
- [x] Create Assembler Base
- [x] using Win32 Api
- [x] use Functions
- [ ] Release for MacOS , Linux

## Development
Created by «Hascal Development Team» with collaboration with «Maj Arts»