en:docs:macrolib:setmode

Note: This IBM PC BIOS API call is for DOS/Win16 personality only. Use Family API for portability.

Note: osFree Macro Library provides macros for most of functions

2022/03/13 05:41 · prokushev · 0 Comments

@SetMode

Version

IBM 5150 and higher

Brief

Set the current video mode

BIOS Interrupt

Family API

Syntax

@SetMode mode

Parameters

  • mode (BYTE) - Mode

Return

  • AL = video mode flag (Phoenix, AMI BIOS)
    • 20h mode > 7
    • 30h modes 0-5 and 7
    • 3Fh mode 6
  • AL = CRT controller mode byte (Phoenix 386 BIOS v1.10)

Notes

IBM standard modes do not clear the screen if the high bit of AL is set (EGA or higher only)