一些用到的汇编库&函数

汇编系列文章:
https://www.jianshu.com/nb/29822876

可以直接到http://programming.msjc.edu/asm/help/上面搜索需要的函数。

库:
SmallWin.inc

Irvine32.inc

SetTextColor

  • http://programming.msjc.edu/asm/help/source/irvinelib/settextcolor.htm

  • Call args: EAX = Bits 0-3 = foreground color

                Bits 4-7 = background color
    

    Return arg: None

  • Example: Set for yellow text on blue background

    1
    2
    3
    4
    INCLUDE Irvine32.inc ;for color definitions

    mov eax,yellow+(blue*16)
    call SetTextColor
  • Note: The colors defined in Irvine32.inc are:
    black, white, brown, yellow, blue, green, cyan, red, magenta, gray, lightBlue, lightGreen, lightCyan, lightRed, lightMagenta, and lightGray.