This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Устанавливаем адрес обработчика | |
push exception | |
push dword [fs:0] | |
mov [fs:0],esp | |
; Исключение | |
xor eax,eax | |
mov [eax],1 | |
; Если всё прошло отлично, то снимаем обработчик |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
format PE native 5.02 at 10000h | |
entry start | |
include 'win32a.inc' | |
section '.text' code readable executable | |
start: | |
push UNICODE_STRING |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
macro RGB red, green, blue | |
{ | |
xor eax, eax | |
mov al, blue ; blue | |
rol eax, 8 | |
mov al, green ; green | |
rol eax, 8 | |
mov al, red ; red | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
section '.data' data readable writable | |
class.form db 'STORAGE',0 | |
title.form db 'Главное окно',0 | |
hinstance dd ? | |
rc RECT | |
msg MSG | |
wc WNDCLASS | |
section '.code' code readable executable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* seh64.inc | |
macro enqueue list,item | |
{ match any,list \{ list equ list,item \} | |
match ,list \{ list equ item \} } | |
macro dequeue list,item | |
{ done@dequeue equ | |
match first=,rest,list | |
\{ item equ first |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
macro array_data_record [arg] | |
{ | |
db arg | |
} | |
macro array name, [arg] | |
{ | |
common | |
name: | |
array_data_record arg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[derive(Debug, Default, Clone, Copy)] | |
struct LexerT<'a> { | |
pos: usize, | |
text: &'a str, | |
token: &'a str, | |
} | |
fn next_token(state: LexerT) -> Option<LexerT> { | |
let mut start_pos = 0; | |
let mut end_pos = start_pos; |