受欢迎的博客标签

U盘插在车上放歌制作教程

Published

工具

1.mp3格式歌曲

2.U盘

3.debug

 

 

Step 1. Plug your  USB drive into the computer .

 

Step 2. Select USB drive on the computer.

DiskPart

DiskPart, a command to help manage your PC's drives (disks, partitions, volumes, or virtual hard disks). The specific steps are as follow:

1. Press “Windows” + “R” to open the Run box, type “diskpart” in the run dialogue, and then hit “Enter”.

C:\Users\Administrator2>diskpart

output:

Microsoft DiskPart 版本 10.0.19041.610

Copyright (C) Microsoft Corporation.
在计算机上: DESKTOP-5NBVMT8

DISKPART>

 

2. In the pop-up window, input the following commands and hit “Enter” after each command.

list disk

DISKPART> list disk

  磁盘 ###  状态           大小     可用     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  磁盘 0    联机              931 GB  2048 KB        *
  磁盘 1    联机              931 GB      0 B
  磁盘 2    联机              465 GB  1024 KB        *


select disk n (here “n” is the disk number of USB drive.)
list partition
select partition m (here “m” is the number of partition going to be formatted.)
format fs=fat32 (here if you need to format the Kingston USB drive to other file system like exFAT, replace the command with “format fs=exfat”.)

 

https://www.diskpart.com/articles/kingston-usb-format-tool-1881.html

debug

 

debug是Windows 16位或者32位机器上的一款调试工具。

在WindowsXP及以前的机器上都有debug,直接Win+X debug就可以调出;在之后的32位机也有;

Windows  X64位的操作系统没有debug程序, 不再支持debug因为他是一个16bit的工具。

具体步骤

Step 1:将U盘低级格式化

U盘需要为单个分区,也就是不能够使用做了启动盘有隐藏分区的U盘设备。首先将U盘0扇区低级格式化,破坏分区表。

C>DEBUG
   把好盘插入到A驱,输入如下信息:
   -L 100 0 0 1 读A盘的引导扇区内容.
   然后取出好盘,将坏盘插入A驱,输入:
   -W 100 0 0 1 将引导扇区内容写到A盘
   -Q 退出DEBUG状态
 A:\>DEBUG
  -A 100
  -XXXX:0100 MOV AX,0703;(//交叉因子为3)
  -XXXX:0103 MOV CX,0001;(//0磁道0扇区起)
  -XXXX:0106 MOV DX,0080;(//C盘0磁道)
  -XXXX:0109 INT 13
  -XXXX:010B INT 3
  -XXXX:010D
  -G 100
  这样硬盘就被低格了。

A:\>DEBUG
-A 100
-XXXX:0100 MOV AX,0500;(//调用5号功能)
-XXXX:0103 MOV BX,0180;(//设置缓冲区地址)
-XXXX:0106 MOV CX,0001;(//0磁道1扇区起)
-XXXX:0109 MOV DX,0080;(//C盘0磁道)
-XXXX:010B INT 13
-XXXX:010D INT 3
-E 0180 0 0 0002;(//写入参数)
-G 100

C:\>DEBUG
 a100 ;修改100地址的汇编指令(a修改汇编指令)
 mov ax,0201 ;02 代表“读”01第一个扇区
 mov bx,200 ;运行结果放在内存地址 0200 处
 mov cx,01 ;柱面号=1
 mov dx,80 ;80 代表第一硬盘;磁头号,驱动器号=80
 int 13 ;调用磁盘中断
 int 20 ;结束程序

 g=100 ;从 100 处开始运行程序(没有需要时直接输入g即可)
 dXXX ;显示某个主引导区记录
 e YYX xx;e代表编辑YY表示扇区位(竖着第一列坐标);X代表内存数据,从0到f;x表示要修改成的内存数据
 dXXX ;
 a100 ;修改100地址的汇编指令
 mov ax,301 ;写入硬盘第一个扇区

 g ;执行
 q ;退出

命令行全文如下: A:\> debug “Enter” 
-F 200 L100 0 “Enter” 
-A CS:100 “Enter” 
xxxx:0100 MOV AX,301 “Enter” 注:xxxx:0100 为系统提示,不需要输入
 xxxx:0103 MOV BX,200 “Enter”
 xxxx:0106 MOV CX,1 “Enter” 
xxxx:0109 MOV DX,80 “Enter” 注:如需要清除机器内第二硬盘的数据,只需将80改为81即可 
xxxx:010C INT 13 “Enter”
 xxxx:010E INT 20 “Enter” 
xxxx:0110 “Enter” 
-G “Enter”

removed hard drive partition with debug...
Used the Partition Deletion Debug Routine
Warning this script will delete all data on the HDD.

Key strokes are in Bold.
From C:> type DEBUG [ENTER].
Then enter the following:

-F 200 L1000 0 [ENTER]
-A CS:100 [ENTER]
xxxx:0100 MOV AX,301 [ENTER]
xxxx:0103 MOV BX,200 [ENTER]
xxxx:0106 MOV CX,1 [ENTER]
xxxx:0109 MOV DX,80 [ENTER] (If 2nd HD use `81`)
xxxx:010C INT 13 [ENTER]
xxxx:010E INT 20 [ENTER]
xxxx:0110 [ENTER]
-G [ENTER]

Here's what that assembly code does:

 

MOV AX,301 (Prepare to write one sector...)

MOV BX,200 (...with the contents from ram location cs:0200...)

MOV CX,1 (...to the first sector...)

MOV DX,80 (...of hard disk 80.)

INT 13 (Now write the sector...)

INT 20 (...and stop the script.)


When you enter 'g', you're telling Debug to begin executing the script, but the beginning point isn't specified.

 

Some explanation of script: (all values in DEBUG script are in HEX)
 - f 200 L200 0  FILL Length of 512 bytes at offset 200 with value 0
 - a 100         ASSEMBLE program at offset 100

      (Next 4 lines set up registers for INT13 - Function 03)

   mov ax,301    AH=03 INT13 function 03 - Write Disk Sectors

                 AL=01 specifies how many sectors to write (1)

   mov bx,200    BH=02 BL=00 points to buffer area at offset 200

   mov cx,1      CH=00 specifies cylinder 0 for INT13 function 03 

                 CL=01 specifies sector 1 (first sector on drive)

   mov dx,0080   DH=00 specifies head 0 (first head on drive)

                 DL=80 specifies physical fixed disk drive 1

                    (81=2nd drive, 82=3rd drive, 83=4th drive)

   int 13        call INT13 (BIOS Fixed Disk Device Service Routine)

   int 3         return to DEBUG (after assembling program)
 - d 100 LF      this line is optional - the resulting hex dump can be

                 used as a check to verify that instructions have been

                 entered correctly
 - g=100         GO - run program stored at offset 100
 - q             QUIT DEBUG back to DOS prompt

 

Step 2:格式化U盘

U盘需要为FAT32格式,将其格式化为此格式即可。

Step 3:新建一个文件夹将音乐保存进入