Changeset 181 in xtideuniversalbios for trunk/Configurator/Src/Libraries/print.asm
- Timestamp:
- Nov 13, 2011, 3:38:40 PM (13 years ago)
- google:author:
- krille_n_@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Configurator/Src/Libraries/print.asm
r78 r181 1 ; File name : print.asm2 1 ; Project name : Print library 3 ; Created date : 6.10.20094 ; Last update : 4.1.20115 ; Author : Tomi Tilli,6 ; : Krister Nordvall (optimizations)7 2 ; Description : ASM library for character and string 8 3 ; printing related functions. … … 95 90 ;-------------------------------------------------------------------- 96 91 ; Debugging macro that prints wanted character and newline. 97 ; 92 ; 98 93 ; PRINT_DBG_CH 99 94 ; Parameters: … … 141 136 ; 142 137 ; NOTE! Caller must clean the stack variables! 143 ; 138 ; 144 139 ; Print_Format 145 140 ; Parameters: … … 341 336 ;-------------------------------------------------------------------- 342 337 ; Prints newline character to change line. 343 ; 338 ; 344 339 ; Print_Newline 345 340 ; Parameters: … … 363 358 ret 364 359 %endif 365 360 366 361 367 362 ;-------------------------------------------------------------------- 368 363 ; Prints wanted number of characters. 369 ; 364 ; 370 365 ; Print_CharBuffer 371 366 ; Parameters: … … 404 399 ;-------------------------------------------------------------------- 405 400 ; Repeats wanted character. 406 ; 401 ; 407 402 ; Print_Repeat 408 403 ; Parameters: … … 429 424 ;-------------------------------------------------------------------- 430 425 ; Prints boolean value. 431 ; 426 ; 432 427 ; Print_Bool 433 428 ; Parameters: … … 455 450 ;-------------------------------------------------------------------- 456 451 ; Prints signed or unsigned 16-bit integer. 457 ; 452 ; 458 453 ; Print_IntSW Prints signed 16-bit word 459 454 ; Print_IntUW Prints unsigned 16-bit word … … 506 501 PRINT_CHAR ; Print character 507 502 inc di ; Increment chars printed 508 test cx, cx; Characters left509 jnz.PrintLoop ; If so, loop503 inc cx ; Characters left 504 loop .PrintLoop ; If so, loop 510 505 mov dx, di ; Copy chars printed to DX 511 506 pop cx … … 518 513 ;-------------------------------------------------------------------- 519 514 ; Prints unsigned 32-bit integer. 520 ; 515 ; 521 516 ; Print_IntUDW 522 517 ; Parameters: … … 552 547 PRINT_CHAR ; Print character 553 548 inc di ; Increment chars printed 554 test cx, cx; Characters left555 jnz.PrintLoop ; If so, loop549 inc cx ; Characters left 550 loop .PrintLoop ; If so, loop 556 551 mov dx, di ; Copy characters printed to DX 557 552 pop cx … … 565 560 ;-------------------------------------------------------------------- 566 561 ; Prints 8-bit byte as hexadecimal string. 567 ; 562 ; 568 563 ; Print_IntHexB 569 564 ; Parameters: … … 593 588 ;-------------------------------------------------------------------- 594 589 ; Prints 16-bit word as hexadecimal string. 595 ; 590 ; 596 591 ; Print_IntHexW 597 592 ; Parameters: … … 621 616 ;-------------------------------------------------------------------- 622 617 ; Prints 32-bit dword as hexadecimal string. 623 ; 618 ; 624 619 ; Print_IntHexDW 625 620 ; Parameters: … … 658 653 ;-------------------------------------------------------------------- 659 654 ; Prints hexadecimal character for every nybble for WORD. 660 ; 655 ; 661 656 ; Print_HexString 662 657 ; Parameters:
Note:
See TracChangeset
for help on using the changeset viewer.