论文部分内容阅读
FORTH语言由于有许多独特的优点而受到用户欢迎。但许多用户现有的Fo-RTH系统盘只有整型运算,没有浮点运算,使得FORTH的应用受到限制。本文力图解决这一问题。它用FORTH-83 (FOR APPLE-Ⅱ)的标准字定义了浮点数的算术四则运算和逻辑比较运算。由于本文用字限于FORTH-83标准字,因此适用于任何FORTH系统。本文所定义的全部字在APPLE-Ⅱ微机上运行通过,并应用于自动脉冲测试系统,效果良好。如在该系统中,对脉冲脉宽和幅度等的计算,其结果不仅满足速度要求,而且满足精度要求。
The FORTH language is popular with users due to many unique advantages. However, many users’ existing Fo-RTH system disks have integer operations and no floating-point operations, which limits the application of FORTH. This article seeks to solve this problem. It uses FORTH-83 (FOR APPLE-Ⅱ) standard word defines the arithmetic arithmetic and logical comparison of floating-point arithmetic. This article applies to any FORTH system because it is limited to FORTH-83 standard words. All words defined in this paper run through the APPLE-Ⅱ microcomputer, and applied to automatic pulse test system, the effect is good. As in the system, the calculation of pulse width and amplitude, the results not only meet the speed requirements, but also to meet the accuracy requirements.