Changeset 84
- Timestamp:
- Apr 8, 2017, 12:26:21 AM (8 years ago)
- Location:
- trunk/bootcode
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bootcode/regular/debug.asm
r75 r84 28 28 ; in that case. To compensate for that, the FX code is disabled when debugging 29 29 ; is active. Also, most of the debug-routines can selectively be disabled 30 ; by commenting-out the define above it. 30 ; by setting the 'IF' directive to 0 or 1. Setting to 0 does an immediate 31 ; return, setting to 1 enables the routine. 31 32 32 33 … … 35 36 DB 'DEBUG',0 36 37 ENDIF 38 39 37 40 38 41 ; … … 70 73 ; 71 74 dbh db 10 72 db 'h=HELP, d=DRIVE-LETTERS, g=GEO, i=IPT, r=RESTART, v=VOL-LETTERS, x=XREF',10 75 db 'h=HELP, d=DBGSCR-TOGGLE',10 76 db 'l=DRIVE-LETTERS, g=GEO, i=IPT, r=RESTART, v=VOL-LETTERS, x=XREF',10 73 77 db '0-9=disk 80h-89h info',10 74 78 db 10,0 … … 85 89 86 90 91 87 92 ; 88 93 ; Call list for debug hot-keys. 89 94 ; 90 95 dbg_call_list: 91 db ' d'96 db 'l' 92 97 dw offset DEBUG_DumpDriveLetters 93 98 db 'g' … … 107 112 db 0 108 113 114 115 109 116 ; 110 117 ; Handle keypresses when the main menu is active. … … 180 187 181 188 ; 182 ; Show not assignedmessage.189 ; Show 'not assigned' message. 183 190 ; 184 191 dbg_na db 'This key is not assigned, press ''h'' for Help.',10,0 … … 226 233 227 234 235 228 236 ; 229 237 ; Check the simple 32-bit math functions. 230 238 ; 231 ;~ __CHECK_MATH__ EQU 232 DEBUG_CheckMath Proc Near 233 IFDEF __CHECK_MATH__ 239 IF 0 240 db_testmul32 db "## CHK MUL32 ##",10,0 241 DEBUG_Test_MATH_Mul32 Proc Near 234 242 pushf 235 243 pusha 236 244 237 245 ; Msg check math-module 238 mov si,offset db_checkmath246 mov si,offset [db_testmul32] 239 247 call AuxIO_Print 240 248 … … 304 312 popa 305 313 popf 306 ENDIF 307 ret 308 DEBUG_CheckMath EndP 314 ret 315 DEBUG_Test_MATH_Mul32 EndP 316 ELSE 317 DEBUG_Test_MATH_Mul32 Proc Near 318 ret 319 DEBUG_Test_MATH_Mul32 EndP 320 ENDIF 321 309 322 310 323 … … 312 325 ; Dump the geometry. 313 326 ; 314 __DUMP_GEO__ EQU 327 IF 0 315 328 DEBUG_DumpGeo Proc 316 IFDEF __DUMP_GEO__317 329 pushf 318 330 pusha … … 360 372 popa 361 373 popf 362 ENDIF363 364 374 ret 365 375 DEBUG_DumpGeo Endp 376 ELSE 377 DEBUG_DumpGeo Proc 378 ret 379 DEBUG_DumpGeo Endp 380 ENDIF 381 366 382 367 383 … … 369 385 ; Dump the internal partition table. 370 386 ; 371 __DUMP_IPT__ EQU 387 IF 0 372 388 DEBUG_DumpIPT Proc 373 IFDEF __DUMP_IPT__374 389 pushf 375 390 pusha … … 383 398 popa 384 399 popf 385 ENDIF386 400 ret 387 401 DEBUG_DumpIPT EndP 402 ELSE 403 DEBUG_DumpIPT Proc 404 ret 405 DEBUG_DumpIPT EndP 406 ENDIF 407 388 408 389 409 … … 391 411 ; Dump the new partitions table. 392 412 ; 393 ;~ __DUMP_NPT__ EQU 413 IF 0 394 414 DEBUG_DumpNewPartTable Proc 395 IFDEF __DUMP_NPT__396 415 pushf 397 416 pusha … … 404 423 popa 405 424 popf 406 ENDIF407 425 ret 408 426 DEBUG_DumpNewPartTable EndP 427 DEBUG_DumpNewPartTable Proc 428 ret 429 DEBUG_DumpNewPartTable EndP 430 ENDIF 431 409 432 410 433 … … 412 435 ; Dump the partition pointers table. 413 436 ; 414 ;~ __DUMP_PP__ EQU 437 IF 0 415 438 DEBUG_DumpPartitionPointers Proc 416 IFDEF __DUMP_PP__417 439 pushf 418 440 pusha … … 431 453 popa 432 454 popf 433 ENDIF434 455 ret 435 456 DEBUG_DumpPartitionPointers EndP 457 ELSE 458 DEBUG_DumpPartitionPointers Proc 459 ret 460 DEBUG_DumpPartitionPointers EndP 461 ENDIF 462 436 463 437 464 … … 439 466 ; Dump the partition x-ref table. 440 467 ; 441 __DUMP_PX__ EQU 468 IF 0 469 xrt db 10,'XrefTable:',10,0 442 470 DEBUG_DumpPartitionXref Proc 443 IFDEF __DUMP_PX__444 471 pushf 445 472 pusha … … 460 487 popa 461 488 popf 462 ENDIF463 489 ret 464 490 DEBUG_DumpPartitionXref EndP 491 ELSE 492 DEBUG_DumpPartitionXref Proc 493 ret 494 DEBUG_DumpPartitionXref EndP 495 ENDIF 496 465 497 466 498 … … 468 500 ; Dump the dl-feature drive-letters. 469 501 ; 470 __DUMP_DL__ EQU 502 IF 0 503 ddl db 10,'Driveletters:',10,0 471 504 DEBUG_DumpDriveLetters Proc 472 IFDEF __DUMP_DL__473 505 pushf 474 506 pusha … … 498 530 popa 499 531 popf 500 ENDIF501 532 ret 502 533 DEBUG_DumpDriveLetters EndP 534 ELSE 535 DEBUG_DumpDriveLetters Proc 536 ret 537 DEBUG_DumpDriveLetters EndP 538 ENDIF 539 540 503 541 504 542 ; 505 543 ; Dump some disk information. 506 544 ; 507 __DUMP_DI__ EQU 545 IF 0 546 ddi db 10,'DumpDiskInfo:',10,0 508 547 DEBUG_DumpDiskInfo Proc 509 IFDEF __DUMP_DI__510 548 pushf 511 549 pusha … … 521 559 popa 522 560 popf 523 ENDIF524 561 ret 525 562 DEBUG_DumpDiskInfo EndP 563 ELSE 564 DEBUG_DumpDiskInfo Proc 565 ret 566 DEBUG_DumpDiskInfo EndP 567 ENDIF 568 569 526 570 527 571 ; 528 572 ; Dump the lvm volume drive-letters. 529 573 ; 530 __DUMP_VL__ EQU 574 IF 0 575 dvl db 10,'VolumeLetters:',10,0 531 576 DEBUG_DumpVolumeLetters Proc 532 IFDEF __DUMP_VL__533 577 pushf 534 578 pusha … … 548 592 popa 549 593 popf 550 ENDIF551 594 ret 552 595 DEBUG_DumpVolumeLetters EndP 553 596 ELSE 597 DEBUG_DumpVolumeLetters Proc 598 ret 599 DEBUG_DumpVolumeLetters EndP 600 ENDIF 554 601 555 602 … … 558 605 ; Dump the registers. 559 606 ; 560 __DUMP_REG__ EQU 561 IFDEF __DUMP_REG__ 607 IF 1 562 608 regAX db 'AX:',0 563 609 regBX db ' BX:',0 … … 576 622 ;~ regFS db 'FS:',0 577 623 ;~ regGS db ' GS:',0 578 ENDIF579 624 DEBUG_DumpRegisters Proc 580 IFDEF __DUMP_REG__581 625 pushf 582 626 pusha 583 627 584 628 push si 585 mov si, offset regAX629 mov si, offset [regAX] 586 630 call AuxIO_Print 587 631 call AuxIO_TeletypeHexWord … … 659 703 popa 660 704 popf 661 ENDIF662 705 ret 663 706 DEBUG_DumpRegisters EndP 707 ELSE 708 DEBUG_DumpRegisters Proc 709 ret 710 DEBUG_DumpRegisters EndP 711 ENDIF 712 664 713 665 714 … … 667 716 ; Dump CHS values. 668 717 ; 669 __DUMP_CHS__ EQU 718 IF 0 670 719 DEBUG_DumpCHS Proc Near 671 IFDEF __DUMP_CHS__672 720 pushf 673 721 pusha … … 700 748 popa 701 749 popf 702 ENDIF703 750 ret 704 751 DEBUG_DumpCHS EndP 752 ELSE 753 DEBUG_DumpCHS Proc Near 754 ret 755 DEBUG_DumpCHS EndP 756 ENDIF 757 705 758 706 759 … … 708 761 ; Dump BSS. 709 762 ; 710 ;~ __DUMP_BSS__ EQU 763 IF 0 711 764 DEBUG_DumpBSSSectors Proc Near 712 IFDEF __DUMP_BSS__713 765 pushf 714 766 pusha … … 737 789 popa 738 790 popf 739 ENDIF740 791 ret 741 792 DEBUG_DumpBSSSectors EndP 793 ELSE 794 DEBUG_DumpBSSSectors Proc Near 795 ret 796 DEBUG_DumpBSSSectors EndP 797 ENDIF 798 742 799 743 800 … … 745 802 ; Dump 6-bit packed hide partition table. 746 803 ; 747 ;~ __DUMP_HPT__ EQU 804 IF 0 748 805 DEBUG_DumpHidePartTables Proc Near 749 IFDEF __DUMP_HPT__750 806 pushf 751 807 pusha … … 778 834 popa 779 835 popf 780 ENDIF781 836 ret 782 837 DEBUG_DumpHidePartTables EndP 838 ELSE 839 DEBUG_DumpHidePartTables Proc Near 840 ret 841 DEBUG_DumpHidePartTables EndP 842 ENDIF 843 783 844 784 845 … … 786 847 ; Check the bitfield routines. 787 848 ; 788 ;~ __CBF__ EQU 849 IF 0 789 850 DEBUG_CheckBitFields Proc 790 IFDEF __CBF__791 851 pushf 792 852 pusha … … 818 878 popa 819 879 popf 820 ENDIF821 880 ret 822 881 DEBUG_CheckBitFields EndP 823 882 ELSE 883 DEBUG_CheckBitFields Proc 884 ret 885 DEBUG_CheckBitFields EndP 886 ENDIF 824 887 825 888 … … 828 891 ; Dump information before the partition is booted. 829 892 ; 830 ;~ __DMP2__ EQU 893 IF 0 831 894 DEBUG_Dump2 Proc Near 832 IFDEF __DMP2__833 895 pushf 834 896 pusha … … 908 970 popa 909 971 popf 910 ENDIF911 972 ret 912 973 DEBUG_Dump2 EndP 913 914 915 916 xrt db 10,'XrefTable:',10,0 917 ddl db 10,'Driveletters:',10,0 918 ddi db 10,'DumpDiskInfo:',10,0 919 dvl db 10,'VolumeLetters:',10,0 974 ELSE 975 DEBUG_Dump2 Proc Near 976 ret 977 DEBUG_Dump2 EndP 978 ENDIF 979 980 981 982 ; 983 ; These strings can also be referenced outside the debug module when debugging 984 ; is enabled. 985 ; 920 986 dlra db 10,'LVM_DoLetterReassignment: ',0 921 987 ptetb db 10,'Partition Table Entry to boot',10,0 … … 927 993 ;~ db_mbr db "## MBR ##",10,0 928 994 ;~ db_masterlvm db "## MLVMR ##",10,0 929 930 ;~ db_checkmath db "## CHK MATH ##",10,0931 995 932 996 -
trunk/bootcode/regular/driveio.asm
r78 r84 943 943 pusha 944 944 push si 945 mov si,offset dioss945 mov si,offset [dioss] 946 946 call AuxIO_Print 947 947 pop si -
trunk/bootcode/regular/partmain.asm
r78 r84 1125 1125 IFDEF AUX_DEBUG 1126 1126 pusha 1127 mov si,offset ptetb1127 mov si,offset [ptetb] 1128 1128 call AuxIO_Print 1129 1129 call DEBUG_DumpRegisters -
trunk/bootcode/special/lvm.asm
r76 r84 468 468 IFDEF AUX_DEBUG 469 469 pusha 470 mov si, offset dlra470 mov si, offset [dlra] 471 471 call AuxIO_Print 472 472 call AuxIO_Teletype
Note:
See TracChangeset
for help on using the changeset viewer.