เข้าสู่ระบบ สมัครสมาชิก

mbasic การใช้

ประโยคมือถือ
  • MBASIC in the uncustomized form had no functions for multitasking.
  • MBASIC permitted but did not require the LET keyword for assignment statements.
  • MBASIC also had a " trace " function that displayed line numbers as they were executed.
  • Unlike some other BASIC implementations of the time, MBASIC did not provide support for floating point hardware.
  • MBASIC version 5 allowed identifiers up to 40 characters long, which permitted programmers to give variables readable names.
  • For more complex operations, MBASIC allowed user-defined functions that could be called from a BASIC program.
  • Apart from these limitations, MBASIC was considered at the time to be a powerful and useful implementation of BASIC.
  • A particular advantage of MBASIC was the full-text error messages provided for syntax and run-time errors.
  • MBASIC also provided hardware INP and OUT instructions that read and wrote directly to the 8080 hardware input / output ports.
  • Any MBASIC programs that made use of PEEK and POKE, and of machine code user functions, were not portable between machines without modifications.
  • On the business-focused CP / M computers which soon became widespread in small business environments, Microsoft BASIC ( MBASIC ) was one of the leading applications.
  • Other people say the name CBASIC referred to " commercial " basic, because it incorporated BCD math which eliminated MBASIC's rounding errors that were sometimes troublesome for accounting.
  • However, if CP / M was used, the user had access to MBASIC for CP / M which was very similar to Model II BASIC and did allow PEEK / POKE.
  • All the functions of CP / M MBASIC were available in the IBM PC disk-based BASICA or GWBASIC which made migration of programs from CP / M systems to PC-compatibles possible.
  • Unlike versions of Microsoft BASIC-80 that were customized by home computer manufacturers to use the particular hardware features of the computer, MBASIC relied only on the CP / M operating system calls for all input and output.
  • To allow larger and more complex programs to be run, later versions of MBASIC supported functions that allowed portions of program text to be read in and executed under program control ( the " CHAIN " and MERGE statements ).
  • TRSDOS was primarily a way of extending the MBASIC ( BASIC in ROM ) with additional I / O ( input / output ) commands that worked with disk files rather than the cassette tapes that were used by most other TRS-80 systems.
  • MBASIC is a stripped BASIC-80 with only hardware-neutral functions, however due to the popularity of CP / M, the vast majority of Z80 machines ran MBASIC rather than a version customized for specific hardware ( TRS-80 BASIC was one of the few exceptions ).
  • MBASIC is a stripped BASIC-80 with only hardware-neutral functions, however due to the popularity of CP / M, the vast majority of Z80 machines ran MBASIC rather than a version customized for specific hardware ( TRS-80 BASIC was one of the few exceptions ).
  • Microsoft also sold a CP / M BASIC compiler ( known as BASCOM ) which used a similar source language to MBASIC . A program debugged under MBASIC could be compiled with BASCOM . Since program text was no longer in memory and the run-time elements of the compiler were smaller than the interpreter, more memory was available for user data.
  • ตัวอย่างการใช้เพิ่มเติม:   1  2