Current area: HOME ->

Zip File view

Flat maquina 32 bit version 2.01


This page allows you to view the contents of a file contained inside a ZIP archive available at Programmer's Heaven. This means you can view the code and find what you need from it without having to download the ZIP file first. If the file contains source code for a language we recognize, we have syntax highlighted it.

Filename displayed: TEST.PAS
Found in file: FM32_V2.ZIP

Download: How to connect a Tseng Labs VGA card to your st (German)
program blablah;

uses fm32;

type
    screen=array[0..65534] of byte;     {64k data segment tipo}

var
    flu1     :^screen;
var fhand    :word;
    xaddr    :longint;
    buf_point:pointer;
    err      :byte;

begin
     new(flu1);
     buf_point:=addr(flu1^);

     start;
     xmshandle:=XMSalloc(1024);          {allocate 1024 kb}

     if (xmshandle=$ffff) then
     begin
          writeln('Error allocating continuous block of 1024KB');
          exit;
     end;

     xmsaddress:=XMSlock(xmshandle);

  {****
   following we demonstrate how to open and load file into xms
   of course ye could replace the filename and file size for more
   testings!
   ****
  }


     if open_file32('fm32.tpu'+char(0),fhand)=1 then
     begin
          exit;
     end;

     if loadhigh_f32(fhand,buf_point,3552,xmsaddress)=1 then
     begin
          writeln('No file encontrado...');
          exit;
     end;


  {****
   the following code writes 1024kb to xms then read 1024kb while
   comparing with the data written to check for validity
   the pattern written is 12345678h.
   ****
  }


  asm
        xor ax,ax
        mov es,ax
        db 66h,33h,0ffh                         {xor edi,edi}
        mov bx,word ptr xmsaddress[2]
        db 66h,0c1h,0e3h,10h                    {shl ebx,16 }
        mov bx,word ptr xmsaddress[0]

        db 66h,0b8h,78h,56h,34h,12h             {mov eax,12345678h}

        @XFILL:
        db 26h,67h,66h,89h,04h,1fh              {mov es,[ebx+edi],eax}
        db 66h,83h,0c7h,04h                     {add edi,4}
        db 66h,81h,0ffh,00h,00h,10h,00h         {cmp edi,100000h}
        jb @XFILL
        db 66h,33h,0ffh                         {xor edi,edi}
        db 66h,0b8h,78h,56h,34h,10h             {mov eax,12345678h}
  @XCHK:
        db 26h,67h,66h,39h,04h,1fh              {cmp es:[ebx+edi],eax}
        jne @READERR
        db 66h,83h,0c7h,04h                     {add edi,4}
        db 66h,81h,0ffh,00h,00h,10h,00h         {cmp edi,100000h}
        jb @XCHK
        jmp @NOERRORS
  @READERR:
        mov err,1
  @NOERRORS:
        end;


  {report error}
  if err=1 then
     writeln('la memory revisar: malo!')
  else
      writeln('la memory revisar: buenas!');

  {closing up}

  XMSunlock(xmshandle);
  if XMSfree(xmshandle)=1  then
     writeln('XMS freed...')
  else
      writeln('Unable to free XMS...');
    dispose(flu1);

end.


Example program demonstrates printing from Windows

Editeur V2.3.1 text editor for Windows 95.
A full featured, all-users text editor. Handles Windows, Dos, and Unix files. Multitext, no size limit. Font choice. Tool and status bars. Editing options incude word wrap and viewing of tabs/p...
How to connect a Tseng Labs VGA card to your st (German)

Download Example program demonstrates printing from Windows Download Editeur V2.3.1 text editor for Windows 95. A full featured, all-users text editor. Handles Windows, Dos,  and Unix files. Multitext, no size limit. Font choice. Tool and  status bars. Editing options incude word wrap and viewing of  tabs/p... Download How to connect a Tseng Labs VGA card to your st (German)







Sponsored links

Localize software in three simple steps
Localize .Net, C/C++ & Delphi apps visually. HTML, HTML Help, XML & databases. Try Sisulizer now!
Localize Delphi software in three simple steps
Localize Delphi VCL & .Net apps visually. Plus HTML, HTML Help, XML & databases. Try Sisulizer now!
Web based bug tracking - AdminiTrack.com
AdminiTrack offers an effective web-based bug tracking system designed for professional software development teams.
Computer Professionals: Are you owed Overtime?
Federal and State Laws may allow computer professionals to collect overtime. Our law firm is experienced, and has initiated class action lawsuits against some of the largest computer companies to collect back pay and overtime. Strictly Confidential.
CSTSOFT Instrumentation .NET & ActiveX Components
A collection of 13 instrumentation .NET/ActiveX/VCL components including Gauge,Knob,LED,Trend etc.


Newsletter | Submit Content | About | Advertising | Awards | Contact Us | Link to us |
© 1996-2008 Community Networks Ltd All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Development by Synchron Data - .NET development.