Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thlorenz/log.mac
Minimal yet colorful logging macros.
https://github.com/thlorenz/log.mac
Last synced: 13 days ago
JSON representation
Minimal yet colorful logging macros.
- Host: GitHub
- URL: https://github.com/thlorenz/log.mac
- Owner: thlorenz
- License: mit
- Created: 2015-04-01T02:25:47.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-04-24T03:16:25.000Z (over 9 years ago)
- Last Synced: 2024-12-10T08:25:36.632Z (about 1 month ago)
- Language: Assembly
- Homepage:
- Size: 430 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# log.mac
Minimal yet colorful logging macros.
```asm
%include "log.mac"section .text
log_text ; very important to include this_start:
; supplying length
log_debug debug, debug.len; as long as is null terminated we can omit length (slightly slower though)
log_info info
log_warn warn
log_error errorlog_info registers
xor eax, eax
mov ah, 10
mov al, 20log_eax
log_info dec_format
log_eax_declog_info dec_impl
mov ebx, 0xbada5501
log_ebx
log_ebx_dec
log_esp
log_eip ; yes you can log the instruction pointer too :)
```![assets/screenshot.png](assets/screenshot.png)
## Installation
```
curl -L https://raw.githubusercontent.com/thlorenz/log.mac/master/log.mac > log.mac
```## Compatibility
Linux i386 (32-bit).
## License
MIT