home *** CD-ROM | disk | FTP | other *** search
- * testint.prg
- * tests inter.prg, inter.bin
- * AS 7/5/87
-
- set procedure to inter.prg
- load \cbin\inter
-
- ? "CONVENTIONAL MEMORY"
- ax = 0
- do inter with 18,ax,0,0,0
- ? ax,"Kbytes conventional memory"
-
- ?
- ? "EXPANDED MEMORY MANAGER"
- ? "assumes you have Lotus/Intel/Microsoft compatible expanded memory"
- ? "if you don't, the numbers are meaningless"
-
- ax = 64 * 256
- al = 0 && for return value
- do inter with 103,ax,0,0,0
- ? al,"EMM status"
-
- ax = 66 * 256
- store 0 to bx,cx,dx
- do inter with 103,ax,bx,cx,dx
- ? bx, "EMM pages free"
- ? dx, "EMM total pages"
- ? bx*16, "EMM Kbytes free"
- ? dx*16, "total EMM Kbytes"
-
- ax = 70 * 256
- al = 0 && for return value
- do inter with 103,ax,0,0,0
- ? al,"EMM version number"
-
- ?
- ? "CLOCK -- raw number of ticks"
- store 0 to cx,dx,al
- do inter with 26,ax,0,cx,dx
- ? iif(al=0, "no clock rollover", "clock did rollover")
- ? dx+(cx*32768),"ticks"
-
- ?
- ? "PRINTER STATUS"
- ax=2*256
- store 0 to ah,dx
- do inter with 23,ax,0,0,dx
- ? "using LPT" + chr(dx+1+48)
- ? ah,"status byte"
-
- ?
- ? "EQUIPMENT BYTE"
- ax = 0
- do inter with 17,ax,0,0,0
- ? ax,"equipment byte"
- ? "how do you test bits with mod()????"
-
- ?
- ? "KEYBOARD TEST"
- ? "doesn't work properly for non-alphanumeric keys!"
- ? "Press (((almost))) any key"
- al = 0
- do inter with 33,8*256,0,0,0
- ? "You pressed key#",al
-
- ?
- ? "SCROLLING TEST"
- ? "This should blank out screen from (5,5) to (15,15)"
- do inter with 16,6*256+10,5*256,5*256+5,15*256+15
-
- ?
- ? "GRAPHICS TEST"
- ? "This is a paltry graphics display"
- ? "It probably won't work on a Hercules card..."
- wait
- * set mode to graphics
- set status off
- do inter with 16,6,0,0,0
- * draw some dots
- store 0 to row, column
- do while row < 200
- do inter with 16,12*256+1,0,column,row
- column = column + 15
- row = row + 5
- enddo
- * wait for key
- do inter with 33,8*256,0,0,0
- * restore text mode
- do inter with 16,2,0,0,0
-
-
-
-
-
-
-
-
-
-