Skip to content

Instantly share code, notes, and snippets.

@svofski
svofski / mame-mess.md
Last active August 29, 2015 14:26
Compiling MAME/MESS

There are some guides to making your own build of MAME on the net, but most if not all of those that I could find are outdated. Here are some of my notes to remember the tricks that will in their turn get outdated soon and confuse other people as well.

Mac OS X

The process is mostly automatic, however I had several problems that I had to resolve by hand. The command line for compiling on my system (OS X 10.7.5 Lion) was:

CFLAGS="-I/Users/svo/tmpsrc/mess/mame/src/lib/util -I/opt/local/include" make SUBTARGET=mess NOWERROR=1 TARGETOS=macosx

@svofski
svofski / HOWTO.md
Last active May 13, 2018 22:37
HOWTO

HOWTO

Various config and setup notes

libvirt/kvm

Connecting to remote from OSX

@svofski
svofski / FORTH.md
Last active November 25, 2016 00:20
Forth

const string array

An indexed array of packed strings:

: csarray ( there nstrings -- )
    create 
        0 do
            dup , dup c@ 1+ + aligned 
        loop
        drop
 does>

RSX-11M

List devices

DEV

Edit accounts

```
cmake -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_OPENGL=ON -D CMAKE_BUILD_TYPE=DEBUG -D CMAKE_INSTALL_PREFIX=/usr/local ..
```
# List snapshits
zfs list -t snapshot
# Migrate the entire pool
zfs snapshot -r pool_A@migrate
zfs send -R pool_A@migrate | zfs receive -F pool_B
# Mount a cloned pool
@svofski
svofski / rgb2xterm.md
Last active June 23, 2017 13:59
RGB to xterm-256color
int rgb2xterm(uint32_t rgb) {
    const int b = rgb & 0377;
    const int g = (rgb >> 8) & 0377;
    const int r = (rgb >> 16) & 0377;
    int r6 = r / 51;
    int g6 = g / 51;
    int b6 = b / 51;
    return 16 + r6 * 6*6 + g6 * 6 + b6;
}
@svofski
svofski / git.md
Last active April 19, 2018 12:27
@svofski
svofski / joytestc
Last active August 24, 2021 15:41
joyсtest 07/0e/0f/27/2e/2f
; Тест 🕹️ для Вектора-06ц
; проверяет джойстик "С" на портах 0e/0f и УСПИД на порту 07
; то же на портах 2e/2f и 27 для платы ЛЕШАДОК ПОМПЕ
.project joyctest.rom
.tape v06c-rom
rastint equ 38h ; прервывание обратного хода луча
.org 100h
; стандартная точка входа .rom файла
@svofski
svofski / ttreset.mac
Last active January 18, 2019 10:36
terminal reset for rsx11m
$ type ttreset.mac
.TITLE TTRESET
.LIST TTM
.NLIST BEX
.ENABL LC
; MACRO LIBRARY CALLS
.MCALL EXIT$S,QIOW$,DIR$,GTSK$