Changeset 293 in xtideuniversalbios for trunk/Configurator/Inc
- Timestamp:
- Mar 4, 2012, 1:33:52 AM (13 years ago)
- google:author:
- krille_n_@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Configurator/Inc/emulate.inc
r223 r293 1 ; File name : emulate.inc2 1 ; Project name : Emulation library 3 ; Created date : 21.10.2009 4 ; Last update : 4.4.2010 5 ; Author : Tomi Tilli 6 ; Description : Macros for emulating later x86 instruction with older 2 ; Description : Macros for emulating later x86 instructions with older 7 3 ; processors. 8 ; Macros are used so optimized builds c ouldbe done4 ; Macros are used so optimized builds can be done 9 5 ; easily for different processors. 10 6 ; … … 14 10 %define EMULATE_INC 15 11 16 ; Defines for processor support. Unsupported instructions will be 17 ; emulated using macros. 18 ; If using 286, define USE_186 and USE_286 19 ; If using 386, define USE_186, USE_286 and USE_386 12 ; Defines for processor support (should be set in makefile). 13 ; Unsupported instructions will be emulated using macros. 20 14 ; If AT class PC is used (instead of XT), define USE_AT 15 21 16 ;%define USE_186 ; Define to use 18x/V20/V30 instructions 22 17 ;%define USE_286 ; Define to use 286 instructions 23 18 ;%define USE_386 ; Define to use 386 instructions 24 19 ;%define USE_AT ; Define for AT class machine 25 ; Above defines should be set on makefile! 26 27 CPU 8086 ; Allow 8088/8086 instructions only 28 %ifdef USE_186 29 CPU 186 ; Allow instructions up to 188/186/V20/V30 20 21 %ifdef USE_386 22 %define USE_286 ; Define to use 286 instructions 23 %endif 24 %ifdef USE_286 25 %define USE_186 ; Define to use 18x/V20/V30 instructions 26 %endif 27 28 %ifdef USE_386 29 CPU 386 ; Allow instructions up to 386 30 30 %elifdef USE_286 31 CPU 286 ; Allow instructions up to 286 32 %elifdef USE_386 33 CPU 386 ; Allow instructions up to 386 34 %endif 31 CPU 286 ; Allow instructions up to 286 32 %elifdef USE_186 33 CPU 186 ; Allow instructions up to 188/186/V20/V30 34 %else 35 CPU 8086 ; Allow 8088/8086 instructions only 36 %endif 37 35 38 BITS 16 ; Set 16 bit code generation 36 39
Note:
See TracChangeset
for help on using the changeset viewer.