Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Asm+batch?  (Read 8777 times)

0 Members and 1 Guest are viewing this topic.

Salmon Trout

  • Guest
Re: Asm+batch?
« Reply #15 on: August 30, 2013, 04:37:56 PM »
Bloody *censored*.

Linux711



    Mentor

    Thanked: 59
    • Yes
    • Programming Blog
  • Certifications: List
  • Computer: Specs
  • Experience: Experienced
  • OS: Windows 7
Re: Asm+batch?
« Reply #16 on: September 01, 2013, 02:16:19 PM »
Quote
I rember the repair man was like "writing ones to buffer host ide or something cmos without reading next data buffer clock to get data buffer to beginning"
maybe data buffer starts at middle of the data buffer or second and ends up In the middle, then darknes in between new middle.

No No, he got that wrong. You need to load the master partition table and make sure the A20 gate is properly initialized by executing this assembly:

use16:
in al,92h
or al,2
out 92h,al

And then you need to assemble this to flat binary and write to partition table and master boot record. Easier way would be to boot dos and translate that code to hex manually and then use a hex editor to enter it at offset 0x5381 on your hard drive because...

    For geometry 1020 16 63 of a disk with 1028160 sectors CHS 3 2 1 is LBA  3150=(3* 16+2)* 63
    For geometry 1008 4 255 of a disk with 1028160 sectors CHS 3 2 1 is LBA  3570=(3*  4+2)*255
    For geometry  64 255 63 of a disk with 1028160 sectors CHS 3 2 1 is LBA 48321=(3*255+2)* 63
    For geometry 2142 15 32 of a disk with 1028160 sectors CHS 3 2 1 is LBA  1504=(3* 15+2)* 32

So yeah, you need to enter that code at 0x5381.

Then when you try to recover pictures or transfer to your phone like you said, your computer will not slow down. Your welcome!  ;D
YouTube

"Genius is persistence, not brain power." - Me

"Insomnia is just a byproduct of, "It can't be done"" - LaVolpe

Geek-9pm


    Mastermind
  • Geek After Dark
  • Thanked: 1026
    • Gekk9pm bnlog
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows 10
Re: Asm+batch?
« Reply #17 on: September 01, 2013, 06:18:35 PM »
Linux711, the OP has Windows 7.