wow thank you! again simple error... really bad about those, clearly, lol
Ok, so teletype automatically moves the cursor for me when the end of the screen is reached, so does regular printing, from my experience so far, does it not?
I want to move the cursor down before reaching the end of the screen, after each line, so I need to manually call it, or print CR+LF if using teletype?
Sorry if I'm not being clear, I'm trying to tell on each call to the print_string function, if the cursor is not in the far left most column, column 0, and if it is not, then I should move the cursor down; because that means something was already printed on that line, and I don't want to print something else on that line or I should print a space before printing the next string.
Thank you for the help so far!
You guys have been most helpful while my internet is incapacitated...
I have added partition mappings following this site:
http://www.pjrc.com/tech/8051/ide/fat32.html
and:
http://home.teleport.com/~brainy/fat32.htm
this is what I came up with:
Code: Select all
times 446-($-$$) db 0 ; pad till partition area
; *** BEGIN PARTITION LIST AREA ***
; FIRST PARTITION:
db 80h ; current state of partition (0 for inactive, 80h for active)
db 0 ; beginning of the partition, head
dw 0 ; chs begin, don't care
db 0Ch ; Partition type, fat32 LBA
db 0 ; end of partition, head
dw 0 ; end of partition chs, don't care
dd 7 ; number of sectors between MBR and partition, so same as reserved sectors in the BPB minus the first sector
dd 2000000h ; number of sectors in partition
; SECOND PARTITION:
db 0
db 0
dw 0
db 0
db 0
dw 0
dd 0
dd 0
; THIRD PARTITION:
db 0
db 0
dw 0
db 0
db 0
dw 0
dd 0
dd 0
; FOURTH PARTITION:
db 0
db 0
dw 0
db 0
db 0
dw 0
dd 0
dd 0
times 510-($-$$) db 0 ; Pad remainder of boot sector with 0s
dw 0xAA55 ; The standard PC boot signature
After adding this my mac doesn't recognize it anymore, is it because I didn't enter valid chs data? I read a bit about it on one of those sites and it seemed they made it very complicated in order to support modern operating system disk sizes so I just put 0 for chs data. Is it because of this or because I haven't added a "first sector" information structure to this partition area yet? I just thought of that actually so going to try it now...
EDIT:
tried it:
Code: Select all
times 2048-($-$$) db 0 ; pad out to backup sectors
; empty backups
times 4096-($-$$) db 0 ; pad out to first partition sector
; *** BEGIN FAT32 VOLUME ID ***
dw 512 ; bytes per sector, 512 yet again...
db 64 ; sectors per cluster, 64 yet again...
dw 32 ; number of reserved sectors, usually 20h (32) i guess?
db 2 ; number of FATs, always 2 apparently?
dd 64 ; Sectors per FAT, I just set it to a single cluster
dd 2 ; root directory first cluster, second cluster?
dw 0AA55h ; signature
times 5120-($-$$) db 0
Mac still doesn't recognize it, how come it worked when there were no partition tables? Do you not need partition tables if there's only one partition?