int e l 9.6 ADDED LINK ROUTINES TO VERSION 1.1 EXAMPLE: MCS-51 MACRO ASSEMBLER ISIS-II MCS-51 MACRO ASSEMBLER V1.0 OBJECT MODULE PLACED IN:F4:DEMO HEX ASSEMBLER INVOKED BY: ASM51 :F4:DEMO LOC OBJ LINE SOURCE 1 ;********************************************************************* 2 ; 3 ; The following is an example of a program that uses the new OPBYTES 4 ; available in version 1.1 of MCS BASIC-52. This code is by no means 5 ; optimized but it is meant to demonstrate how the user can define 6 ; "customized" commands and statements in version 1.1 of MCS BASIC-52. 7 ; 8 ; The new command defined here is DISPLAY.
What it does is display a 9 ; region of external data memory to the console device. The syntax 1O ; for this statement is: 11 ; 12 ; DISPLAY [expr], [expr] 13 ; 14 ; Where the first expression is the starting address and the last 15 ; expression is the ending address. In this example the DISPLAY is 16 ; treated like a command which means that it cannot be executed in 17 ; RUN mode. 18 ; 19 ; The output for the DISPLAY command is as follows: 20 ; 21 ; ADDRESS then 16 Bytes of Characters i. e. 22 ; 23 ; 1000H 00H 22H 33H 27H . . . . . . . . 24 ; 25 ; Now on to the program. 26 ;********************************************************************* - 124 -