Skip to content

Instantly share code, notes, and snippets.

@sinitcin
Created January 28, 2014 10:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sinitcin/8665077 to your computer and use it in GitHub Desktop.
Save sinitcin/8665077 to your computer and use it in GitHub Desktop.
macro array_data_record [arg]
{
db arg
}
macro array name, [arg]
{
common
name:
array_data_record arg
length#.#name = $ - name
}
; Обьявляем статический массив байт
array mi_start, 03h, 00h, 00h, 16h, 11h, 0E0h, 00h, 00h, 00h, 21h
; теперь у нас есть массив байт по адресу mi_start и имеющий длину length.mi_start
; ....
; Помещаем в al 5-й элемент
mov al, byte[mi_start+5]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment