home *** CD-ROM | disk | FTP | other *** search
- ;* ------------------------------------------------------- *
- ;* TP3GR.MAC *
- ;* Konstantendeklaration *
- ;* ------------------------------------------------------- *
-
- ;* Einsprungoffsets der Turbo Pascal 3.0 Grafikbibliothek *
- ;* Werden diese Werte im Register DI der Prozedur *
- ;* GRFUNCTION übergeben, wird automatisch die richtige *
- ;* Grafikroutine aufgerufen. *
-
- GraphMode equ 0
- GraphColorMode equ 3
- HiRes equ 6
- HiResColor equ 9
- Palette equ 12
- GraphBackGround equ 15
- GraphWindow equ 18
- Plot equ 21
- Draw equ 24
- ColorTable equ 27
- Arc equ 30
- Circle equ 33
- GetPic equ 36
- PutPic equ 39
- GetDotColor equ 42
- FillScreen equ 45
- FillShape equ 48
- FillPattern equ 51
- Pattern equ 54
- Back equ 57
- ClearScreen equ 60
- ForWd equ 63
- Heading equ 66
- HideTurtle equ 69
- Home equ 72
- NoWrap equ 75
- PenDown equ 78
- PenUp equ 81
- SetHeading equ 84
- SetPenColor equ 87
- SetPosition equ 90
- ShowTurtle equ 93
- TurnLeft equ 96
- TurnRight equ 99
- TurtleDelay equ 102
- TurtleWindow equ 105
- TurtleThere equ 108
- Wrap equ 111
- XCor equ 114
- YCor equ 117
-
- ;* Macros, die den Umgang mit der Grafikbibliothek von
- ;* Turbo Pascal 3.0 erleichtern
-
- PushReg macro
- push ax
- push bx
- push cx
- push dx
- endm
-
- PopReg macro
- pop dx
- pop cx
- pop bx
- pop ax
- endm
-
- PushAdr macro
- push ds
- push ax
- endm
-
- ;* Nachfolgende Macros rufen entsprechende Routinen
- ;* der Grafikbibliothek auf.
- ;* Die erwarteten Parameter werden auf den Stack gelegt.
- ;* Beispiel:
- ;* TP3_4 circle 160,100,80,2 ( zeichnet Kreis )
-
- TP3 macro function
- mov di,function
- call grfunction
- endm
-
- TP3_1 macro function,w1
- mov ax,w1
- push ax
- mov di,function
- call grfunction
- endm
-
- TP3_2 macro function,w1,w2
- mov ax,w1
- push ax
- mov ax,w2
- push ax
- mov di,function
- call grfunction
- endm
-
- TP3_3 macro function,w1,w2,w3
- mov ax,w1
- push ax
- mov ax,w2
- push ax
- mov ax,w3
- push ax
- mov di,function
- call grfunction
- endm
-
- TP3_4 macro function,w1,w2,w3,w4
- mov ax,w1
- push ax
- mov ax,w2
- push ax
- mov ax,w3
- push ax
- mov ax,w4
- push ax
- mov di,function
- call grfunction
- endm
-
- TP3_5 macro function,w1,w2,w3,w4,w5
- mov ax,w1
- push ax
- mov ax,w2
- push ax
- mov ax,w3
- push ax
- mov ax,w4
- push ax
- mov ax,w5
- push ax
- mov di,function
- call grfunction
- endm
- ;* ------------------------------------------------------- *
- ;* Ende von TP3GR.MAC *
-
-