⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qbconvrt.bas

📁 这是一个数字图像处理的matlab仿真程序
💻 BAS
字号:
' ----------------------------------
' Put your in & out file names here.
' Run this file from the QBASIC
' editor by pressing F5. The example
' asm file uses "list.asm" as in include
' so be sure to put the correct file
' names that you need.
'
' It converts a list of text items
' into the format needed to be added
' in the asm source file.
' ----------------------------------

SourceFile$ = "list.txt"
Destination$ = "list.asm"

OPEN SourceFile$ FOR INPUT AS #1
OPEN Destination$ FOR OUTPUT AS #2

    rf% = 0
    DO
      LINE INPUT #1, a$
      a$ = "db " + CHR$(34) + a$ + CHR$(34) + ",0"

      b$ = "    item" + RIGHT$(STRING$(6, "0") + LTRIM$(STR$(rf%)), 6) + " " + a$
      PRINT #2, b$
      rf% = rf% + 1
    LOOP WHILE NOT EOF(1)

    b$ = "    lastbyte db 0"
    IF b$ <> "" THEN
      PRINT #2, b$
    END IF

CLOSE #2
CLOSE #1

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -