Subversion Repositories MB01 Project

Rev

Blame | Last modification | View Log | Download | RSS feed

  Tue Jul 17 11:00:19 2018                                                                                               Page    1







          2500 A.D. 65816 Macro Assembler #26960 - Version 5.02g
          -----------------------------------------------------

                       Input  Filename : src\F9\biosmem.asm
                       Output Filename : obj\F9\biosmem.obj
                       Listing Has Been Relocated                               


 2589                           .LIST           on
 2590                           
 2591  F8FFB1                           .INCLUDE inc\dirp00.inc
 2592                           ;----------------------------------------------------------
 2593                           ; DIRP00.ASM
 2594                           ; PROGETTO: B1601
 2595                           ;
 2596                           ; Variabili in Direct Page $00
 2597                           ;----------------------------------------------------------
 2598                           
 2599                           ; sezione COMMON -- questo permette di includere il file in piu' file
 2600                           
 2601                           .LIST on
 2602                           
 2603                           DIRP00: .SECTION page0, ref_only, common        ;Direct-Page 00
 2604                           
 2605  000000                           .ABSOLUTE               ;; inizia sempre da $00
 2606  000000                           .ORG            0x00
 2607  000000                           
 2608  000000  0000             JiffyClk        .DW                     ; contatore 10ms 32 bit
 2609  000002  0000                             .DW
 2610  000004                   SysTmr          .DS     SYSTMRCNT       ; system timer 0 (10ms)
 2611  000008                   SysTMF          .DS     SYSTMRCNT       ; flag timer (80 -> start)
 2612  00000C  00               Bnk0Flag        .DB                     ; <7>: flag test RAM banco 0 ok
 2613                                                                   ; <6>: flag warm reset
 2614  00000D  00               RTCFlag         .DB
 2615                           
 2616  00000E                   diskstat        .DS     2       ; flag device on ata bus #0 & #1
 2617                                                           ; <7>: device ready
 2618                                                           ; <6>: compact flash device (C.F.)
 2619                                                           ; <5>: device identification ok
 2620                                                           ; <4>: MBR loaded
 2621                                                           ; <3>: valid signature in MBR
 2622                                                           ; <2>: first partition found&active
 2623                                                           ; <1>:
 2624                                                           ; <0>: valid partition flag
 2625                           
 2626                                                           ; <7>: device ready
 2627                                                           ; <6>: USB device
 2628                                                           ; <5>: compact flash device (C.F.)
 2629                                                           ; <4>: device identification ok
 2630                                                           ; <3>: MBR loaded
 2631                                                           ; <2>: first partition found&active
 2632                                                           ; <1>: always 1
 2633                                                           ; <0>: valid partition flag
 2634  000010                                                   
  Tue Jul 17 11:00:19 2018                                                                                               Page    2




 2635                           
 2636          00000E           atadev          .EQU    diskstat
 2637                           
 2638  000010                   usbdev          .DS     2       ; flag flash disk on usb bus #0
 2639                                                           ; <7>: device plugged and ready
 2640                                                           ; <6>: always 1 
 2641                                                           ; <5>: device identification ok
 2642                                                           ; <4>: MBR loaded
 2643                                                           ; <3>: valid signature in MBR
 2644                                                           ; <2>: first partition found&active
 2645                                                           ; <1>:
 2646                                                           ; <0>: valid partition flag
 2647                           
 2648  000012                   diskmax         .DS     16      ; disk max. sector's
 2649          000012           atasec          .EQU    diskmax
 2650          00001A           usbsec          .EQU    diskmax+8
 2651                           
 2652                           
 2653  000022                   atambr          .DS     8       ; data for first partition found in mbr
 2654                                                           ; first 3 bytes for start sector of partition
 2655                                                           ; last byte for partition type
 2656  00002A                   usbmbr          .DS     8
 2657                           
 2658  000032                   ataprt          .DS     8       ; total sec's of first partition
 2659  00003A                   usbprt          .DS     8       ; total sec's of first partition
 2660                           
 2661                           
 2662  000042  00               usb0ch          .DB     ; usb0 (ch375/ch376) flag
 2663                                                   ; <7>: module on
 2664                                                   ; <6>: ch376 flag
 2665                                                   ; <5:0>: chip version
 2666                           
 2667  000043  00               usb0st          .DB     ; usb0 status
 2668                                                   ; <7>: usb0 host mode ok
 2669                                                   ; <6>: flash disk attached flag
 2670                                                   ; <5>: usb device attached
 2671                           
 2672  000044  00               fdcdrv          .DB             ; phisycal drive status (drive #0)
 2673                                                           ; <7>: disk format established in bit 0&1 
 2674                                                           ; <6>: double step seek done
 2675                                                           ; <5>: trust format bit's (set after ok r/w)
 2676                                                           ; <4>: write protect bit (if disk in drive)
 2677                                                           ; <3>: don't care
 2678                                                           ; <2>: don't care                               
 2679                                                           ; <1>: HD disk if set else DD disk
 2680                                                           ; <0>: CBM format if set else IBM format
 2681                           
 2682  000045  00               vdrive          .DB             ; virtual drive status (ram disk, drive #1)
 2683                                                           ; <7>: disk format established in bit 0&1 
 2684                                                           ; <6>: change disk simulation (after format)
 2685                                                           ; <5>: don't care
 2686                                                           ; <4>: write protect bit (under sw control)
 2687                                                           ; <3>: don't care
 2688                                                           ; <2>: don't care                               
 2689                                                           ; <1>: HD disk if set else DD disk
 2690                                                           ; <0>: CBM format if set else IBM format
 2691                           
  Tue Jul 17 11:00:19 2018                                                                                               Page    3




 2692  000046  00               fdcctl          .DB             ; fdc controller status
 2693                                                           ; <7>: drive is attached
 2694                                                           ; <6>: drive need recalibration (restore)
 2695                                                           ; <5>: FDC controller ok
 2696                                                           ; <4>: motor on
 2697                                                           ; <3>: dma is active
 2698                                                           ; <2>: dma chip ok (post routine)
 2699                                                           ; <1>: clock rate (1=HD,0=DD)
 2700                                                           ; <0>: disk ready
 2701                           
 2702  000047  00               fdctrk          .DB             ; fd: current seek track
 2703  000048  00               fdcerr          .DB             ; fd: last error code
 2704  000049  00               ataerr          .DB             ; ata: last error code
 2705  00004A  00               ataxer          .DB             ; ata: last extended error code
 2706                           
 2707  00004B  00               CtrlBrk         .DB             ; flag CTRL+BREAK (NMI)
 2708                           
 2709  00004C  0000             MemTop          .DW             ; top memoria RAM
 2710  00004E  00                               .DB             ; banco top mem
 2711                           
 2712  00004F  00               DflTxtIn        .DB             ; device di default text input 
 2713  000050  00               DflTxtOut       .DB             ; device di default text output
 2714                           
 2715  000051                   COPPtr          LP              ; long pointer for COP decoding
 2716  000054  00               COPIdx          .DB             ; COP signature/index
 2717                           
 2718  000055  00               BiosEnt         .DB             ; flag accesso a bios setup
 2719                           
 2720                           ; variabili utilizzate da ACIA
 2721  000056                   spwrk           .DS     $30
 2722                           
 2723                           ; bios mem
 2724  000086  0000             nsize           .DW     ; dimensione blocco da allocare
 2725                           ;bsize          .DW     ; dimensione vera blocco free
 2726  000088  0000             splitsz         .DW     ; dimensione blocco splittato
 2727  00008A  0000             bfree           .DW     ; puntatore blocco free
 2728  00008C  0000             hdrptr          .DW     ; puntatore header heap
 2729                           
 2730  00008E  0000             pbrklv          .DW     ; current break level of current process
 2731  000090  0000             pbrkmin         .DW     ; minimum breal level of current process
 2732  000092  0000             pbrkmax         .DW     ; maximum breal level of current process
 2733  000094                           
 2734                           ; bios temp. work area
 2735  000094                   bwrktmp         .DS     $28
 2736                           
 2737  0000BC  00               coptmp          .DB     ; temp. used while cop
 2738                           
 2739  0000BD  00               tstser          .DB     ; check ser/usb test board post
 2740                                                   ; <7>: VIA2 ok
 2741                                                   ; <6>: PICRAM ok
 2742                                                   ; <1>: UART 16C550 ok
 2743                                                   ; <0>: R65C51 ok
 2744                           
 2745                           
 2746                           ;crc16          .DW
 2747                           
 2748  0000BD                           .RELATIVE
  Tue Jul 17 11:00:19 2018                                                                                               Page    4




 2749                           
 2750                                   .ENDS
 2751                           
 2752          [01]             .IFDEF          _ACIA_INC_
 2753                                   .INCLUDE INC\SP.INC
 2754          [00]             .ENDIF
 2755                           


             Lines Assembled : 2979                  Errors : 0