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

📄 updatesc.asm

📁 辞典 dict3.asm.grammar.asm,newword.asm 学习 learn.asm 名片 userinf.asm 备忘 userinf.asm 提醒 userinf
💻 ASM
📖 第 1 页 / 共 4 页
字号:
; ***************************************************************************
; *     Project : Electronic Dictionary                                     *
; *        Date : 2003.9                                                    *
; *   File Name : UPDATESC.ASM                                              *
; ***************************************************************************

        pw      128
        case    off
        externs on
        include st2202.def
        include Data.def
        include Bios.h
        include Graphics.h
        include Graph.def
        include KeyDef.def
        include DataBank.def

        public  draw8x16phonetic_bug
        public  UpdateScreen_bug
        public	screenupdate_no1_bug
        public	screenupdate_no2_bug
        public	screenupdate_no3_bug
        public	screenupdate_no4_bug
        public	screenupdate_no5_bug
	public	screenupdate_no2345_bug
	public	lupdatescreen_except2_bug

        public  printimagetolcd_bug
        public  game_printimagetolcd_bug
        public  speed_clrlcdimage_bug
	public	jgame_printimagetolcd_bug
	public	DrawNumS_bug

ds0     .section
DJFont8x16_yh_bug:
;;      include 8X16YB.ASM
        include font2.ASM
ps0a    .section
bankno  equ     updatesc_bank

;;======================================
UpdateScreen_bug:
        lda     <ScreenMode
        bne     ?234
        jmp     UpDate_quit_bug
?234:
        lda     <OX
        pha
        lda     <OY
        pha
        lda     <DRRl
        pha
        lda     <DRRh
        pha

        stz     <OX                     ;; OX & OY =0
        stz     <OY

        lda     <ScreenMode
        asl                             ;; Screen mode * 2.
        tax
        lda     ScreenUpdateTable_bug+1,x   ;; Get high address.
        pha
        lda     ScreenUpdateTable_bug,x     ;; Get low address.
        pha
        ldx     #0
        rts

ScreenUpdateTable_bug:
        dw      Screen0Update_bug-1
        dw      Screen1Update_bug-1
        dw      Screen2Update_bug-1
        dw      Screen3Update_bug-1
        dw      Screen4Update_bug-1
        dw      Screen5Update_bug-1
        dw      Screen6Update_bug-1
        dw      Screen7Update_bug-1
        dw      Screen8Update_bug-1
        dw      Screen9Update_bug-1
        dw      Screen10Update_bug-1
        dw      Screen11Update_bug-1
        dw      Screen12Update_bug-1
        dw      Screen13Update_bug-1
        dw      Screen14Update_bug-1   ;;Screen1Update一样但显示字库有:am,pm
        dw      Screen15Update_bug-1   ;;新加显示模式
        dw      Screen16Update_bug-1   ;;新加显示模式
        dw      Screen17Update_bug-1   ;;新加显示模式
        dw      Screen18Update_bug-1   ;;新加显示模式
        dw      Screen19Update_bug-1   ;;新加显示模式
        dw      Screen20Update_bug-1   ;;新加显示模式
        dw      Screen21Update_bug-1   ;;新加显示模式
        dw      Screen22Update_bug-1   ;;新加显示模式
;;-----------------------------------------------------
Screen0Update_bug:
        jmp     EndScrUpdate_bug

;;-----------------------------------------------------
;;       Screen mode #1
;;       Text mode : 14(Char.) X 3(Line)
;;       English & Chinese mode.
;;       Row   height
;;        0      16      中、英、数。
;;        1      16      中、英、数。
;;        2      16      中、英、数。
;;        4      16      中、英、数。
;;        5      16      中、英、数。
;;-----------------------------------------------------
screenupdate_no1_bug:		;仅screenmode=1,14,刷新第三行
        lda     <ScreenMode
        bne     ?234
        jmp     UpDate_quit_bug
?234:
        lda     <OX
        pha
        lda     <OY
        pha
        lda     <DRRl
        pha
        lda     <DRRh
        pha
        lda	#0
	sta	<ox
	lda	#0
	sta	<oy
	ldx	#0
	jsr	UpDate16_bug
	jmp	EndScrUpdate_bug

screenupdate_no2_bug:		;仅screenmode=1,14,刷新第三行
        lda     <ScreenMode
        bne     ?234
        jmp     UpDate_quit_bug
?234:
        lda     <OX
        pha
        lda     <OY
        pha
        lda     <DRRl
        pha
        lda     <DRRh
        pha
        lda	#0
	sta	<ox
	lda	#16
	sta	<oy
	ldx	#20
	jsr	UpDate16_bug
	jmp	EndScrUpdate_bug

screenupdate_no3_bug:		;仅screenmode=1,14,刷新第三行
        lda     <ScreenMode
        bne     ?234
        jmp     UpDate_quit_bug
?234:
        lda     <OX
        pha
        lda     <OY
        pha
        lda     <DRRl
        pha
        lda     <DRRh
        pha
        lda	#0
	sta	<ox
	lda	#32
	sta	<oy
	ldx	#40
	jsr	UpDate16_bug
	jmp	EndScrUpdate_bug

screenupdate_no4_bug:		;仅screenmode=1,14,刷新第三行
        lda     <ScreenMode
        bne     ?234
        jmp     UpDate_quit_bug
?234:
        lda     <OX
        pha
        lda     <OY
        pha
        lda     <DRRl
        pha
        lda     <DRRh
        pha
        lda	#0
	sta	<ox
	lda	#48
	sta	<oy
	ldx	#60
	jsr	UpDate16_bug
	jmp	EndScrUpdate_bug

screenupdate_no5_bug:		;仅screenmode=1,14,刷新最后一行
        lda     <ScreenMode
        bne     ?234
        jmp     UpDate_quit_bug
?234:
        lda     <OX
        pha
        lda     <OY
        pha
        lda     <DRRl
        pha
        lda     <DRRh
        pha
        lda	#0
	sta	<ox
	lda	#64
	sta	<oy
	ldx	#80
	jsr	UpDate16_bug
	jmp	EndScrUpdate_bug
Lupdatescreen_except2_bug:		;仅screenmode=1,14,刷新最后一行
        lda     <ScreenMode
        bne     ?234
        jmp     UpDate_quit_bug
?234:
        lda     <OX
        pha
        lda     <OY
        pha
        lda     <DRRl
        pha
        lda     <DRRh
        pha
        lda	#32
	sta	<ox
	lda	#0
	sta	<oy
	ldx	#4
	jsr	UpDate16_bug
	jmp	falfjdslkafj
screenupdate_no2345_bug:		;仅screenmode=1,14,刷新最后一行
        lda     <ScreenMode
        bne     ?234
        jmp     UpDate_quit_bug
?234:
        lda     <OX
        pha
        lda     <OY
        pha
        lda     <DRRl
        pha
        lda     <DRRh
        pha
falfjdslkafj:
        lda	#0
	sta	<ox
	lda	#16
	sta	<oy
	ldx	#20
Screen14Update_bug:
Screen2Update_bug:
Screen1Update_bug:
        jsr     UpDate16_bug        ; Update one line for height 16.(English & Chinese).
        cpx     #textbuffer_num/2
        bcc     Screen1Update_bug   ;; No !

EndScrUpdate_bug:
        jsr     update_all_icon_bug
        pla
        sta     <DRRh
        pla
        sta     <DRR
        pla
        sta     <OY
        pla
        sta     <OX

        jsr     update_draw_line_bug
        jsr     update_all_icon_bug
UpDate_quit_bug:
        rmb7    <SysOpt
        rts

;;-----------------------------------------------------
Screen3Update_bug:
        jsr     UpDate16_bug        ;; Update one line for height 16.(English & Chinese).
s3u1_bug:
        jsr     UpDate8_bug         ;; Update one line for height 8.(English ).
        cpx     #textbuffer_num-20
        bcc     s3u1_bug
        jmp     EndScrUpdate_bug

Screen11update_bug:
s11u1_bug:
        jsr     UpDate8_bug         ;; Update one line for height 8.(English ).
        cpx     #textbuffer_num ;; End of text buffor ?
        bcc     s11u1_bug
        jmp     EndScrUpdate_bug
;;-----------------------------------------------------
;;       Screen mode #4
;;       Text mode : 14(Char.) X 4(Line)
;;       English mode only.
;;
;;       Row   height
;;        0      8       英。
;;        1      8  (Phonetic)   音标。
;;        2      16      中、英、数。
;;        3      16      中、英、数。
;;-----------------------------------------------------
Screen4Update_bug:
        jsr     UpDate8_bug
        jsr     UpDate8Phonetic_bug
        jsr     UpDate16_bug
        jsr     UpDate16_bug
        jsr     UpDate16_bug
        jsr     UpDate16_bug
        jmp     EndScrUpdate_bug

;;-----------------------------------------------------
;;       Text mode : 14(Char.) X 5(Line)
;;       English mode only.
;;
;;       Row   height
;;        0      8       英。
;;        1      8  (Phonetic)   音标。
;;        2      8  (Phonetic)   音标。
;;        3      8               英。
;;        4      16              中、英、数。
;;-----------------------------------------------------
Screen5Update_bug:
        jsr     UpDate8_bug
        jsr     UpDate8Phonetic_bug
        jsr     UpDate8Phonetic_bug
        jsr     UpDate8_bug
        jsr     UpDate16_bug
        jsr     UpDate16_bug
        jsr     UpDate16_bug
        jmp     EndScrUpdate_bug

;;-----------------------------------------------------
;;       Screen mode #5
;;       Text mode : 14(Char.) X 5(Line)
;;       English mode only.
;;
;;       Row   height
;;        0      8       英。
;;        1      8  (Phonetic)   音标。
;;        2      8  (Phonetic)   音标。
;;        3      8               英。
;;        4      16              中、英、数。
;-----------------------------------------------------
Screen9Update_bug:
        jsr     UpDate8_bug         ; Update one line for height 8.(English ).
        jsr     UpDate8_bug         ; Update one line for height 8.(English ).
        jsr     UpDate8Phonetic_bug ; Update one line for height 8.(Phonetic)
        jsr     UpDate8Phonetic_bug ; Update one line for height 8.(Phonetic)
        jsr     UpDate16_bug        ; Update one line for height 16.(English & Chinese).
        jsr     UpDate16_bug        ; Update one line for height 16.(English & Chinese).
        jsr     UpDate16_bug        ; Update one line for height 16.(English & Chinese).
        jmp     EndScrUpdate_bug

;;-----------------------------------------------------
;;       Screen mode #5
;;       Text mode : 14(Char.) X 5(Line)
;;       English mode only.
;;
;;       Row   height
;;        0      8       英。
;;        1      8  (Phonetic)   音标。
;;        2      8  (Phonetic)   音标。
;;        3      8               英。
;;        4      16              中、英、数。
;-----------------------------------------------------
Screen10Update_bug:
        jsr     UpDate8_bug         ; Update one line for height 8.(English ).
        jsr     UpDate8_bug         ; Update one line for height 8.(English ).
        jsr     UpDate8_bug         ; Update one line for height 8.(English ).
        jsr     UpDate8Phonetic_bug ; Update one line for height 8.(Phonetic)
        jsr     UpDate16_bug        ; Update one line for height 16.(English & Chinese).
        jsr     UpDate16_bug        ; Update one line for height 16.(English & Chinese).
        jsr     UpDate16_bug        ; Update one line for height 16.(English & Chinese).
        jmp     EndScrUpdate_bug

;;-----------------------------------------------------
;;       Screen mode #6
;;       Text mode : 14(Char.) X 4(Line)
;;
;;       Row   height
;;        0      16      中、英、数。
;;        1      8       英、数。
;;        2      8       英、数。
;;        4      16      中、英、数。
;;-----------------------------------------------------
Screen6Update_bug:
        jsr     UpDate16_bug        ; Update one line for height 16.(English & Chinese).
        jsr     UpDate8_bug         ; Update one line for height 8.(English ).
        jsr     UpDate8_bug         ; Update one line for height 8.(English ).
        jsr     UpDate16_bug        ; Update one line for height 16.(English & Chinese).
        jmp     EndScrUpdate_bug

;;-----------------------------------------------------
;;       Screen mode #7
;;       Text mode : 14(Char.) X 4(Line)
;;
;;       Row   height
;;        0      8       英、数。
;;        1      8       英、数。
;;        2      16      中、英、数。
;;        3      16      中、英、数。
;;-----------------------------------------------------
Screen7Update_bug:
        jsr     UpDate8_bug         ; Update one line for height 8.(English ).
        jsr     UpDate8_bug         ; Update one line for height 8.(English ).
        jsr     UpDate16_bug        ; Update one line for height 16.(English & Chinese).
        jsr     UpDate16_bug        ; Update one line for height 16.(English & Chinese).
        jmp     EndScrUpdate_bug

;;-----------------------------------------------------
;;       Screen mode #8
;;       Text mode : 14(Char.) X 4(Line)
;;
;;       Row   height
;;        0      8       英、数。
;;        1      8       英、数。
;;        2      8       音标。
;;        3      16      中、英、数。
;;        4      8       英、数。
;;-----------------------------------------------------
Screen8Update_bug:
        jsr     UpDate8_bug         ; Update one line for height 8.(English ).
        jsr     UpDate8_bug         ; Update one line for height 8.(English ).
        jsr     UpDate8Phonetic_bug ; Update one line for height 8.(Phonetic)
        jsr     UpDate16_bug        ; Update one line for height 16.(English & Chinese).
        jsr     UpDate8_bug         ; Update one line for height 8.(English ).
        jmp     EndScrUpdate_bug

Screen12Update_bug:
        jsr     UpDate16_bug        ; Update one line for height 16.(English & Chinese).
        jsr     UpDate16Phonetic_bug ; Update one line for height 16.(English & Chinese).
        jsr     UpDate16_bug        ; Update one line for height 16.(English & Chinese).
        jsr     UpDate16_bug        ; Update one line for height 16.(English & Chinese).
        jsr     UpDate16_bug        ; Update one line for height 16.(English & Chinese).
        jmp     EndScrUpdate_bug

;;==========================================================================
Screen13Update_bug:
        jsr     UpDate16_bug        ; Update one line for height 16.(English & Chinese).
        jsr     UpDate16_bug        ; Update one line for height 16.(English & Chinese).
        jsr     UpDate16Phonetic_bug ; Update one line for height 16.(English & Chinese).
        jsr     UpDate16_bug        ; Update one line for height 16.(English & Chinese).
        jsr     UpDate16_bug        ; Update one line for height 16.(English & Chinese).
        jmp     EndScrUpdate_bug

;;==========================================================================
Screen15Update_bug:
        jsr     UpDate8_bug         ; Update one line for height 8.(English ).
        jsr     UpDate8_bug         ; Update one line for height 8.(English ).
        jsr     UpDate8_bug         ; Update one line for height 8.(English ).
        jsr     UpDate8Phonetic_bug ; Update one line for height 8.(Phonetic)
        jsr     UpDate8Phonetic_bug ; Update one line for height 8.(Phonetic)
        jsr     UpDate8Phonetic_bug ; Update one line for height 8.(Phonetic)
        jsr     UpDate16_bug        ; Update one line for height 16.(English & Chinese).
        jsr     UpDate16_bug         ; Update one line for height 8.(English ).
        jmp     EndScrUpdate_bug
;;==========================================================================
Screen16Update_bug:
        jsr     UpDate8_bug         ; Update one line for height 8.(English ).
        jsr     UpDate8_bug         ; Update one line for height 8.(English ).
        jsr     UpDate8Phonetic_bug ; Update one line for height 8.(English ).
        jsr     UpDate8Phonetic_bug ; Update one line for height 8.(Phonetic)
        jsr     UpDate8Phonetic_bug ; Update one line for height 8.(Phonetic)
        jsr     UpDate8Phonetic_bug ; Update one line for height 8.(Phonetic)
        jsr     UpDate16_bug        ; Update one line for height 16.(English & Chinese).
        jsr     UpDate16_bug         ; Update one line for height 8.(English ).
        jmp     EndScrUpdate_bug
;;==========================================================================
Screen17Update_bug:
        jsr     UpDate8_bug         ; Update one line for height 8.(English ).
        jsr     UpDate8_bug         ; Update one line for height 8.(English ).
        jsr     UpDate8_bug         ; Update one line for height 8.(English ).
        jsr     UpDate8_bug         ; Update one line for height 8.(English ).
        jsr     UpDate8Phonetic_bug ; Update one line for height 8.(Phonetic)
        jsr     UpDate8Phonetic_bug ; Update one line for height 8.(Phonetic)
        jsr     UpDate16_bug        ; Update one line for height 16.(English & Chinese).
        jsr     UpDate16_bug        ; Update one line for height 8.(English ).

⌨️ 快捷键说明

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