Page 2 of 3

Re: Code help wanted

PostPosted: 09 Oct 2011, 11:19
by justine
;) Thankyou TS-LABS i understand the first part but this bit has still got me puzzled.

LD A,#52 ;#52 = 0101 0010b
0 - no matter in this case
1 - RAM should be exposed to the window, else 0 - ROM
010010 - is the inversion of 101101, that means decimal 45, so:
page 45 of RAM will be shown at bank 3 (#C000)

Doesnt #52 = 0101 0010b

Because i thought 0101 0010b = 82 ?
Or am i going wrong somewhere ?
Hey i nearly have i'll be bank switching and changing video modes in no time ;)

Thanx in advance

Re: Code help wanted

PostPosted: 09 Oct 2011, 11:23
by justine
Forget that last question i was having a blonde moment , i was stupidly using dec not hex.

Sorry :confused:

Re: Code help wanted

PostPosted: 09 Oct 2011, 11:32
by justine
Thanx for all your help guys , I am reading the manual but it wasn't clear , Now you all have explained it a lot better and now i understand.
I will add this to my English version of the manual to help others such as myself understand a little better.

I may ask other silly questions later but please be patient with me ;)

Re: Code help wanted

PostPosted: 09 Oct 2011, 11:42
by justine
1 - RAM should be exposed to the window, else 0 - ROM

So does this mean i could put rom at any page in memory ?

Also how would i select which 16k rom ? like 48k or 128k roms or services rom ?

Re: Code help wanted

PostPosted: 09 Oct 2011, 12:18
by DimkaM
justine wrote:1 - RAM should be exposed to the window, else 0 - ROM

So does this mean i could put rom at any page in memory ?
yes

justine wrote:0 - no matter in this case

not properly. This bit is very important. If you do not need to be compatible with the ZX-Spectrum128, it is more convenient to set it to zero.
In other cases, the study manual.

Re: Code help wanted

PostPosted: 09 Oct 2011, 12:19
by lvd
justine wrote:Thanx for all your help guys , I am reading the manual but it wasn't clear , Now you all have explained it a lot better and now i understand.
I will add this to my English version of the manual to help others such as myself understand a little better.

Our english translation was not made by us, and as it turned out was made mainy by some machine translator. It would be nice if you correct some parts of it :)

justine wrote:So does this mean i could put rom at any page in memory ?

Yes, you can have any ROM page at any memory bank.


justine wrote:Also how would i select which 16k rom ? like 48k or 128k roms or services rom ?

There is standard ROM map like this download/file.php?id=1556&t=1
Main working pages are four last ones, you shouldn't mix their order. Other blocks of 4 pages can be used as alternative 128k rom sets (like first 4 ones) or just for something else as in this picture, for profrom from Scortion.

Re: Code help wanted

PostPosted: 09 Oct 2011, 12:35
by DimkaM
justine wrote:Also how would i select which 16k rom ? like 48k or 128k roms or services rom ?
48k=page0 ROM
tr-dos6_12e=page1 ROM
128k=page2 ROM
sys=page3 ROM


---post add---
упс, LVD опередил.

Re: Code help wanted

PostPosted: 09 Oct 2011, 15:34
by justine
Is it possible other than using port FE to read all of the keys from a ps2 keyboard ?

Re: Code help wanted

PostPosted: 09 Oct 2011, 18:01
by DimkaM
TS-Labs wrote:though it could be implemented in firmware if one wants to.
Хотелось бы верить.
Причём койкакой стандарт уже есть:
Прошивка ZXMCard начиная с версии 2.3 обеспечивает доступ к скан-кодам нажатых на IBM-ской клавиатуре клавиш.
Доступ производится через порты в поле модема 80DFh...87DFh.
Первые шесть портов обеспечивают доступ к буферу нажатых клавиш IBM-ки. Обычно контролллеры клавиатур обеспечивают до 6 одновременно нажатых клавиш, что и определило обьем буфера.
86DFh - байт текущего статуса клавиатуры. Отображает состояние служебных клавиш и признак нажатия хотя бы одной клавиши.
Бит 0 - Scroll Lock
Бит 1 - Num Lock
Бит 2 - Caps Lock
Бит 6 - Shift
Бит 7 - Флаг нажатия
87DFh - скан-код последней нажатой клавиши.

caro k2k@list.ru 6 апреля 2007 года
да и в АТМ вроде что то было.

Re: Code help wanted

PostPosted: 09 Oct 2011, 19:59
by lvd
DimkaM wrote:Причём койкакой стандарт уже есть:

Недопц как обычно придумает свой стандарт -- как ей проще, а на остальное покласть. АТМ -- страшное угрёбище там было, в мцкарде Камиль тоже сделал как ему удобливее, ну и мы. Намёк -- не в модемной части будет...