2 # Copyright (c) 1998 Robert Nordier
5 # Redistribution and use in source and binary forms are freely
6 # permitted provided that the above copyright notice and this
7 # paragraph and the following disclaimer are duplicated in all
10 # This software is provided "AS IS" and without any express or
11 # implied warranties, including, without limitation, the implied
12 # warranties of merchantability and fitness for a particular
45 define(o16,`.byte 0x66')dnl
47 define(addwia,`.byte 0x5; .word $1')dnl
48 define(lgdtwm,`.byte 0xf; .byte 0x1; .byte 0x16; .word $1')dnl
49 define(lidtwm,`.byte 0xf; .byte 0x1; .byte 0x1e; .word $1')dnl
50 define(cmpwmr,`.byte 0x3b; .byte ($2 << 0x3) | 0x6; .word $1')dnl
51 define(cmpwir,`.byte 0x81; .byte 0xf8 | $2; .word $1')dnl
52 define(movbr1,`.byte 0x88; .byte 0x40 | ($1 << 0x3) | $3; .byte $2')dnl
53 define(movwr0,`.byte 0x89; .byte ($1 << 0x3) | $2')dnl
54 define(leaw1r,`.byte 0x8d; .byte 0x40 | ($3 << 0x3) | $2; .byte $1')dnl
55 define(movwir,`.byte 0xb8 | $2; .word $1')dnl
56 define(movbi1,`.byte 0xc6; .byte 0x40 | $3; .byte $2; .byte $1')dnl
57 define(callwi,`.byte 0xe8; .word $1 - . - 0x2')dnl
58 define(jmpfwi,`.byte 0xea; .word $2; .word $1')dnl
59 define(tstbim,`.byte 0xf6; .byte 0x6; .word $2; .byte $1')dnl