home *** CD-ROM | disk | FTP | other *** search
/ Power Programming / powerprogramming1994.iso / progtool / microcrn / issue_45.arc / TECHTP45.ARC / TECHTIPS.3 < prev    next >
Text File  |  1988-03-23  |  928b  |  20 lines

  1. ; Micro Cornucopia Magazine Issue #45  Figure 3
  2. ; DEBUG session to alter floppy step rate
  3.  
  4. C>debug
  5. -a                              ; invoke DEBUG's assembler
  6. ????:0100 xor ax,ax             ; zero the AX register
  7. ????:0102 mov ds,ax             ; DS = 0
  8. ????:0104 mov bx,522            ; offset of DPT
  9. ????:0107 mov byte ptr [bx],ef  ; new step rate (ef = 4 msec) to DPT
  10. ????:010A int 13                ; reset FDC (AH still = 0 from above)
  11. ????:010C int 20                ; return to DOS
  12. ????:010E                       ; <cr> here exits assembler
  13. -nfaststep.com                  ; name file and set up FCB
  14. -rcx                            ; cx register gets file length
  15. CX 0000                         ; current value of cx
  16. :e                              ; change to e, length of file
  17. -w                              ; write the file to disk
  18. Writing 000E bytes
  19. -q                              ; quit DEBUG
  20.