17.05.2015 Views

TI486 Microprocessor - Al Kossow's Bitsavers

TI486 Microprocessor - Al Kossow's Bitsavers

TI486 Microprocessor - Al Kossow's Bitsavers

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SMM Instruction Macros<br />

A.12 SMM Instruction Macros - SMIMAC.lNC<br />

COMMENT"<br />

SMM Macro Implementation, smimac.inc (by Dean C. Wills)<br />

This Section provides a complex set of macros that generate SMM opcodes<br />

containing the appropriate mod/rm bytes. For explicit SMM opcode definition,<br />

basic macros that define the opcode byte alone are provided with a '$' prefix<br />

to distinguish them from the other macros.<br />

The complex macros require that the labels they access correspond to the<br />

segment specified or the macros will be inoperative. Segment overrides must<br />

by passed to the macro as an argument. If an address size override is used,<br />

a final argument of'1' must be passed to the macro. Segment and address size<br />

overrides must be presented explicitly to prevent the assembler from<br />

generating them automatically and breaking the macros. Examples of these<br />

macros are provided in the file smitest.asm.<br />

A<br />

COMMENT A<br />

Basic macros which allow you to create your own mod/r.m bytes<br />

A<br />

cs_over MACRO<br />

db<br />

ENDM<br />

$svdc MACRO<br />

db<br />

ENDM<br />

$rsdc MACRO<br />

db<br />

ENDM<br />

$svldt MACRO<br />

db<br />

ENDM<br />

$rsldt MACRO<br />

db<br />

ENDM<br />

$svts MACRO<br />

db<br />

ENDM<br />

$rsts MACRO<br />

db<br />

ENDM<br />

$rsm MACRO<br />

db<br />

ENDM<br />

2eh<br />

Ofh,78h<br />

Ofh,79h<br />

Ofh,7Ah<br />

Ofh,7Bh<br />

Ofh,7Ch<br />

Ofh,7Dh<br />

Ofh,AAh<br />

A-38 <strong>TI486</strong> SMM Programmer's Guide

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!