Skip to main content

Posts

Showing posts with the label Assembly Language Examples

Burnout

Burnout COMMENT *   Demo (and semi-useful) program to read/set burnout device parameters.   Usage: burnout [ticks] [C+-] [V+-] [H+-]   Parameters can be separated by almost anything.   With no parameters, program simply returns current status.   Examples:     burnout 5000                (sets time to 5000 ticks)     burnout 5000H+              (time=5000, use hardware blanking)     burnout 5000,h+             (ditto, separators don't matter)     burnout c+h-v+              (continuous clear, software, monitor video)     burnout /C+ /H- /V+         (ditto)     burnout                     (return status only)   Assembly/link:     masm burnout;     link...

Absolute Disk Read

Absolute Disk Read ; ; Synopsis: int getsec(drive,numsec,begsec,buffer) ; unsigned int drive; /* 0=A, 1=B, etc. */ ; unsigned int numsec; /* Number of sectors to read */ ; unsigned int begsec; /* Beginning logical sector */ ; char *buffer; /* Transfer address */ ; ; Function: The number of sectors specified are transferred  ; between the given drive and the transfer address.  ; LOGICAL SECTOR NUMBERS are obtained by numbering ; each sector sequentially starting from track 0, head 0, ; sector 1 (logical sector 0) and continuing along the ; same head, then to the next head until the last sector ; on the last head of the track is counted.  Thus,  ; logical sector 1 is track 0, head 0, sector 2, ; logical sector 2 is track 0, head 0, sector 3,  & so on. ;

Break Handling Utilities Module

TITLE   BRK2 -- Break Handling Utilities Module TRUE            EQU     01H                     ;boolean true FALSE           EQU     00H                     ;boolean false BREAKINT        EQU     23H                     ;dos control-break intrpt GETVECTOR       EQU     35H                     ;dos get vector function SETVECTOR       EQU     25H                     ;dos set vector function DOS_FUNCTION    EQU     21H                     ;dos function call BREAK           SEGMENT P...

BASIC programs with access to the program loader (LOAD) by passing parameters via the system parameter area (SYSPARM)

This program provides BASIC programs with access to the program loader (LOAD) by passing parameters via the system parameter area (SYSPARM). ;BASLOAD.ASM ;---------------------------------------------------------------------------- ; ;Inputs: ;  FILE SPEC 1 - A string (len <= 80) with the complete name, including ;  path, of the file to be loaded and executed. ;  Example: 'MAINMENU.EXE' or 'C:\FORMAT.COM' ;  PARAMETER 1  - A string (len <= 80) with the command line parameters ;  to be passed to the program specified in FILE SPEC 1. ;  Example: '' or 'A:' ;  FILE SPEC 2  - Same as 1. ;  PARAMETER 2  - Same as 1. ; ;Outputs: ;  This program gives control to LOAD. ;----------------------------------------------------------------------------

Some Assembly Language Examples

Some Assembly Language Examples 1.     Describe the action of the following 68K assembly language instructions in RTL, register transfer language. That is, translate the assembly language syntax of the 68K instruction into the RTL notation that defines the action of the instruction . a.      MOVE  3000,4000   [4000] ← [300]        Copy contents of location 3000 to location 4000 b.      MOVE  D0,D4                    [D4] ← [D0]                Copy contents of D0 to D4 c.      MOVE  3000,D0               [D0] ← [3000]           Copy contents of location 3000 to D...