tailieunhanh - assembly language step by step programming with dos and linux PHẦN 7

subtables cung cấp cho bạn chỉ là về tất cả mọi thứ bạn thực sự cần phải biết về một bộ chuyển đổi hiển thị cho làm công việc hữu ích với nó. Khi chương trình lắp ráp ngôn ngữ của bạn bắt đầu thực hiện, nên kiểm tra một bảng và trích xuất các giá trị thích hợp cho các bộ chuyển đổi hiển thị cài đặt hiện thời. | MiCfữ library from ASSEMBLY LANGUAGE STEP 6 STEP by Jeff Duntemann MASM TASM Last update 1VEỈ 9Ỉ CltAR -- Clears the entire visible screen buffer Last update 3 16 69 Caller must pass In ViilAddress The address of the video refresh buffer In ClearAtom The character attrlbute pair to fill the In BufLength Actlon buffer with the high byte contains the attribute and the 1ov byte the character. The number of characters in the visible display buffer. fcnot the number of bytes I This ts typically 2QŨŨ for a 25-11oe screen or 400Ũ for a Bũ-ltne screen. Clears the screen by machine-gunning the Character attrlbute pair 1n AX Into the display buffer beginning at VidAddlress. Clear MACRO VidAddress . Length les pifi VldAddress mpy earAtpm fflov Length rep stusw GotoXV Q 0 EMM RULER -- displays a R1234567B9Cr-style ruler on screen Last update 1I 2S 91 Caller must pass In YldAddress The address of the start of the video buffer In Length The length pf the ruler to be displayed In ScreenW The width of the current screen usually BQ Jn ScreenY The line of the screen where the ruler is to he displayed 0-241 Ln ScreenX The row of the screen where the ruler should start 0 79 Action Displays an ASCE ruler at . kuler MACRO VidAddress ScreenY les Dl DWORD PTR VidAddress mov AL 5creeflV Move Ĩ position to AL mov Move screen width to AH IjiiuI AH Dữ 8 bit multiply AL AH to AX add DI Al Í Add i offset into vidbuff to D3 add 01 .ScreenX Add X offset Into vldbuf to ŨI Shi 01 1 Multiply by 2 for final address mov ex Length ex monitors the ruler length mow AH 07 Attribute 7 is normal text TT1OV AL 1 Start with digit 1M DoChar stosw Note that therms no REP prefix add AL 1 Í Bump the character value in AL up by 1 iaa Adjust AX to make this a ẼCD addition add AL Ũ Basically put binary 3 1n Al s high nybble mov Make sure our attribute Is still 7 loop DoChar GO back I do soother char until BL goes .

TỪ KHÓA LIÊN QUAN
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.