8051 micro controller on chip ROM address range? MEMORY SIZE
Those values are obviously in hex: 0FFF = 4095, 1FFF = 8192 and 7FFF = 32767. Since there is a byte at address zero, you have full 4KB, 8KB and 32KB of ROM on the corresponding chip.