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

📄 err.inc

📁 一个用汇编写的基于BCE32的压缩和解压引擎
💻 INC
字号:
.data
err_1   db 13,10,"You didn't input any valid things...Return to host ",13,10,0
err_2   db 13,10,"Can't OPEN file for operating.... ",13,10,0
err_3   db 13,10,"Can't Create fileMAPPING .KKK. ",13,10,0
err_4   db 13,10,"Can't Create MAPING VIEW... ",13,10,0
err_5	db 13,10,"THE FILE IS ZERO BYTES INCLUDE,can not be compressed.. ",13,10,0
err_6	db 13,10,"Create output file Fail.... ",13,10,0
err_7	db 13,10,"OUT_put mapping fail.... ",13,10,0
err_8	db 13,10,"OUT_put viewing... fail.... ",13,10,0
err_9	db 13,10,"Compress error.... ",13,10,0
err_10	db 13,10,"Negative compress..stop ",13,10,0
err_11	db 13,10,"allocating memory eroor...stop ",13,10,0


.code
	;------------[ input file errors checking...]-----------------------------
	
      err_no_input_names:
        lea     esi,err_1
	JMP	@F
      error_openfile_fail:
        lea	esi,err_2
	JMP	@F
      error_zero_file:
        lea	esi,err_5
	JMP	@F

      error_map_fail:
	lea	esi,err_3
	JMP	@F
      error_view_fail:
	lea	esi,err_4
	JMP	@F
	;------------[ out put file error] -----------------------------
	
      error_out_openfile_fail:
	lea	esi,err_6
	JMP	@F
       error_out_map_fail:
	lea	esi,err_7
	JMP	@F
       error_out_view_fail:
	lea	esi,err_8
	JMP	@F
      error_compress:
	lea	esi,err_9
	JMP	@F
      error_compress_negative:
	sub	eax,src_size
        INVOKE	wsprintf,addr buf,CTEXT(13,10," %d INcreased....",13,10),eax
        lea     esi,buf
        call    write_con_string
	lea	esi,err_10
	JMP	@F
      error_alloc_fail:
	lea	esi,err_11
	JMP	@F


      @@:
	mov	error_mode,1		;出错标志
        call    write_con_string
        JMP     err_xit_prg

⌨️ 快捷键说明

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