2016. 12. 16. 11:23

DOS PSP 관련 스펙.

336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

안녕하세요.


DOS에서 실행 파일을 실행 시킬때 사용하는 인터럽트가 발생되는데요.


이때 실행 코드( 파일헤더 부분에 수록된 정보)의 용량만 메모리에 올리게 됩니다.


이때 255 byte는 할당된 정보가 수록이 됩니다.


그래서 항상 프로그램의 시작 주소 offset  0100( ff +1 ) 이 되는것 같습니다.


그러면 위의 ff 256 바이트까지 수록되는 정보가 뭔가 해서 찾아 보니 PSP네요


감사 합니다.


출처 https://en.wikipedia.org/wiki/Program_Segment_Prefix


OffsetimagesSizeContents
00h-01h2 bytes (code)CP/M exit (always contains INT 20h)
02h-03hword (2 bytes)Segment of the first byte beyond the memory allocated to the program
04hbyteReserved
05h-09h5 bytes (code)Far call to CP/M compatibility code within DOS
0Ah-0Dhdword (4 bytes)Terminate address of previous program (old INT 22h)
0Eh-11hdwordBreak address of previous program (old INT 23h)
12h-15hdwordCritical error address of previous program (old INT 24h)
16h-17hwordParent's PSP segment (usually COMMAND.COM - internal)
18h-2Bh20 bytesJob File Table (JFT) (internal)
2Ch-2DhwordEnvironment segment
2Eh-31hdwordSS:SP on entry to last INT 21h call (internal)
32h-33hwordJFT size (internal)
34h-37hdwordPointer to JFT (internal)
38h-3BhdwordPointer to previous PSP (only used by SHARE in DOS 3.3 and later)
3Ch-3Fh4 bytesReserved
40h-41hwordDOS version to return (DOS 4 and later, alterable via SETVER in DOS 5 and later)
42h-4Fh14 bytesReserved
50h-52h3 bytes (code)Far call to DOS (always contain INT 21h + RETF)
53h-54h2 bytesReserved
55h-5Bh7 bytesReserved (can be used to make first FCB into an extended FCB)
5Ch-6Bh16 bytesUnopened Standard FCB 1
6Ch-7Fh20 bytesUnopened Standard FCB 2 (overwritten if FCB 1 is opened)
80h1 byteNumber of bytes on command-line
81h-FFh127 bytesCommand-line tail (terminated by a 0Dh)


'오픈소스관련' 카테고리의 다른 글

LAKKA + KODI + RASPBERRY PI 2 조합 설치 법입니다.  (0) 2017.10.09
Dos Relocation 관련 작업.  (0) 2016.12.16
DOSBOX vs x8086 OPCODE  (0) 2016.11.29
터보씨 3.0 입니다.  (0) 2016.11.08
라즈베리파이 서버 세팅 관련  (0) 2016.02.29