Code help wanted

ZX evolution software and hardware

Postby justine » 09 Oct 2011, 11:19

;) 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
User avatar
justine
 
Posts: 101
Joined: 06 Jul 2011, 00:50
Location: Scotland
Group: Registered users

Postby justine » 09 Oct 2011, 11:23

Forget that last question i was having a blonde moment , i was stupidly using dec not hex.

Sorry :confused:
User avatar
justine
 
Posts: 101
Joined: 06 Jul 2011, 00:50
Location: Scotland
Group: Registered users

Postby justine » 09 Oct 2011, 11:32

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 ;)
User avatar
justine
 
Posts: 101
Joined: 06 Jul 2011, 00:50
Location: Scotland
Group: Registered users

Postby justine » 09 Oct 2011, 11:42

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 ?
User avatar
justine
 
Posts: 101
Joined: 06 Jul 2011, 00:50
Location: Scotland
Group: Registered users

Postby DimkaM » 09 Oct 2011, 12:18

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.
ZX-Evo rev C, ZXNetUsb rev С
DimkaM
 
Posts: 1290
Joined: 24 Mar 2010, 13:42
Location: джунгли Амазонки
Group: Registered users

Postby lvd » 09 Oct 2011, 12:19

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.
Многого нет здесь: http://lvd.nedopc.com
Image
User avatar
lvd
 
Posts: 1637
Joined: 07 Apr 2007, 22:28
Group: Registered users

Postby DimkaM » 09 Oct 2011, 12:35

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 опередил.
ZX-Evo rev C, ZXNetUsb rev С
DimkaM
 
Posts: 1290
Joined: 24 Mar 2010, 13:42
Location: джунгли Амазонки
Group: Registered users

Postby justine » 09 Oct 2011, 15:34

Is it possible other than using port FE to read all of the keys from a ps2 keyboard ?
User avatar
justine
 
Posts: 101
Joined: 06 Jul 2011, 00:50
Location: Scotland
Group: Registered users

Postby DimkaM » 09 Oct 2011, 18:01

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 года
да и в АТМ вроде что то было.
ZX-Evo rev C, ZXNetUsb rev С
DimkaM
 
Posts: 1290
Joined: 24 Mar 2010, 13:42
Location: джунгли Амазонки
Group: Registered users

Postby lvd » 09 Oct 2011, 19:59

DimkaM wrote:Причём койкакой стандарт уже есть:

Недопц как обычно придумает свой стандарт -- как ей проще, а на остальное покласть. АТМ -- страшное угрёбище там было, в мцкарде Камиль тоже сделал как ему удобливее, ну и мы. Намёк -- не в модемной части будет...
Многого нет здесь: http://lvd.nedopc.com
Image
User avatar
lvd
 
Posts: 1637
Joined: 07 Apr 2007, 22:28
Group: Registered users

PreviousNext

Return to Пентева - софт и железо

Who is online

Users browsing this forum: No registered users and 1 guest

cron