Welcome, Guest. Please login or register.


Author Topic: Q&A (Read 22946 times)

Offline g0blinish

  • EP fan
  • *
  • Posts: 110
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 46.0.2490.86 Chrome 46.0.2490.86
    • View Profile
Re: Q&A
« Reply #45 on: 2015.November.27. 09:39:44 »
nope(

Offline Zozosoft

  • EP addict
  • *
  • Posts: 13561
  • Country: hu
  • OS:
  • Windows XP Windows XP
  • Browser:
  • Firefox 42.0 Firefox 42.0
    • View Profile
    • http://enterprise.iko.hu/
Re: Q&A
« Reply #46 on: 2015.November.27. 09:46:12 »
The right solution:
14178-0

Offline g0blinish

  • EP fan
  • *
  • Posts: 110
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 46.0.2490.86 Chrome 46.0.2490.86
    • View Profile
Re: Q&A
« Reply #47 on: 2015.November.27. 09:51:26 »
same as my screenshot, emulator 2.0.9.1

Offline Zozosoft

  • EP addict
  • *
  • Posts: 13561
  • Country: hu
  • OS:
  • Windows XP Windows XP
  • Browser:
  • Firefox 42.0 Firefox 42.0
    • View Profile
    • http://enterprise.iko.hu/
Re: Q&A
« Reply #48 on: 2015.November.27. 10:01:43 »
same as my screenshot, emulator 2.0.9.1
No.
In your:
-crazy data in the breakpoint window
-something in the LUA script window
14180-0

Offline g0blinish

  • EP fan
  • *
  • Posts: 110
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 46.0.2490.86 Chrome 46.0.2490.86
    • View Profile
Re: Q&A
« Reply #49 on: 2015.November.27. 10:06:15 »
aah, what sucks(

I convert to ZX and debug code into proper debugger )

Offline Zozosoft

  • EP addict
  • *
  • Posts: 13561
  • Country: hu
  • OS:
  • Windows XP Windows XP
  • Browser:
  • Firefox 42.0 Firefox 42.0
    • View Profile
    • http://enterprise.iko.hu/
Re: Q&A
« Reply #50 on: 2015.November.27. 10:17:29 »
At the top left window can you enter commands (dump, modify, load, save memory, modify registers, IO ports), enter ? for help.
To the right window can you enter brekapoints.
Bottom window for the LUA scripts (for a advanced tasks).

Offline g0blinish

  • EP fan
  • *
  • Posts: 110
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 46.0.2490.86 Chrome 46.0.2490.86
    • View Profile
Re: Q&A
« Reply #51 on: 2015.November.28. 17:53:41 »
How to scan keyboard?

I found map of ports here:
http://www.ep128.hu/Ep_Konyv/Converting_Spectrum_Programs.pdf

and how fire is defined in ep128emu? I mean what key is for fire?

Offline lgb

  • EP addict
  • *
  • Posts: 3497
  • Country: hu
  • æðsta yfirmaður
  • OS:
  • Linux (Ubuntu) Linux (Ubuntu)
  • Browser:
  • Firefox 42.0 Firefox 42.0
    • View Profile
    • http://lgb.hu/
Re: Q&A
« Reply #52 on: 2015.November.28. 18:20:20 »
How to scan keyboard?

I found map of ports here:
http://www.ep128.hu/Ep_Konyv/Converting_Spectrum_Programs.pdf

and how fire is defined in ep128emu? I mean what key is for fire?

Send the desired keyboard matrix row with writing port 0xB5, then you can read the status of that selected row on the same port, by reading port 0xB5. Well, I always confuse row/column :) but in the diagram you also mentioned, it's what you read for example. The internal joystick (named as "JOY" on the diagram) of EP are simply behaves as any other keys on the keyboard, no difference at all (technically keys and internal joystick pad points are the very same on the keyboard membrane only the physical design of buttons and internal joystick handle are different). You can see on the diagram too ("JOY" up/down/left/right among the "normal" keys in the matrix). However external joystick(s) are complete different issue (named as "JOY1" and "JOY2"), they are not the very same process as you would do with the keyboard+internal joystick, that involves port 0xB6 too. You can see this in the right column on the diagram (I mean the diagram/matrix on page 4 of that PDF).

Honestly I don't know how _external_ joystick(s) are emulated in ep128emu, including the fire button ...  I think you should choose "Keyboard map" in the "Options" menu, so you can define keys assigned to the EP keyboard and external joystick "events".

Offline gflorez

  • EP addict
  • *
  • Posts: 2703
  • Country: es
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 42.0 Firefox 42.0
    • View Profile
Re: Q&A
« Reply #53 on: 2015.November.28. 18:26:28 »
For FIRE internal joystick the SPACE key is used.

Offline g0blinish

  • EP fan
  • *
  • Posts: 110
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 46.0.2490.86 Chrome 46.0.2490.86
    • View Profile
Re: Q&A
« Reply #54 on: 2015.November.28. 18:58:20 »
I understand matrix, but i cannot find value for arrows.


Offline lgb

  • EP addict
  • *
  • Posts: 3497
  • Country: hu
  • æðsta yfirmaður
  • OS:
  • Linux (Ubuntu) Linux (Ubuntu)
  • Browser:
  • Firefox 42.0 Firefox 42.0
    • View Profile
    • http://lgb.hu/
Re: Q&A
« Reply #55 on: 2015.November.28. 19:17:50 »
I understand matrix, but i cannot find value for arrows.

What kind of "arrows" do you mean? For internal joystick directions of movements, it's "JOY UP" for internal joystick direction "up" (ie: row 7, bit position 3 named as "b3" in the matrix so it would be write value 7 to port 0xB5 to select row to scan, read port 0xB5 and if b3 - bit 3 - is _reset_ then internal joystick function "up" is activated/used), and so on.

Update: if you mean the "cursor arrow" keys (I'm sorry it just come into my mind that you meant maybe about the cursor arrow keys when you wrote "arrows"), on EP the internal joystick is used for that, there is no separated "joystick" and "cursor arrow keys", they are the very same entities (this means, that on EP you use the internal joystick for cursor movements as well even in BASIC etc - this can be "strange" for newcomers, I can imagine ...). Of course I meant the _internal_ joystick again (built in the EP), the _external_ joysticks are different issue.
« Last Edit: 2015.November.28. 20:07:28 by lgb »

Offline g0blinish

  • EP fan
  • *
  • Posts: 110
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 46.0.2490.86 Chrome 46.0.2490.86
    • View Profile
Re: Q&A
« Reply #56 on: 2015.November.29. 05:25:01 »
lgb, thank you. I mean "cursor keys".

Offline g0blinish

  • EP fan
  • *
  • Posts: 110
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 46.0.2490.86 Chrome 46.0.2490.86
    • View Profile
Re: Q&A
« Reply #57 on: 2015.November.29. 11:33:31 »
a game almost ready/ What next - contact orginizers or create thread here?

Offline lgb

  • EP addict
  • *
  • Posts: 3497
  • Country: hu
  • æðsta yfirmaður
  • OS:
  • Linux (Ubuntu) Linux (Ubuntu)
  • Browser:
  • Firefox 42.0 Firefox 42.0
    • View Profile
    • http://lgb.hu/
Re: Q&A
« Reply #58 on: 2015.November.29. 12:07:11 »
lgb, thank you. I mean "cursor keys".

It was my fault, that I couldn't get what you mean with "arrows" at first :)

Offline lgb

  • EP addict
  • *
  • Posts: 3497
  • Country: hu
  • æðsta yfirmaður
  • OS:
  • Linux (Ubuntu) Linux (Ubuntu)
  • Browser:
  • Firefox 42.0 Firefox 42.0
    • View Profile
    • http://lgb.hu/
Re: Q&A
« Reply #59 on: 2015.November.29. 12:15:36 »
a game almost ready/ What next - contact orginizers or create thread here?

Well, I am not an organizer, but I think, since one program is already posted (flapflap.bas by endi) you may want to post yours there too. Maybe someone then can create a new thread/topic and move the posts if they really want? But it is just a guess from me, I am only curious what the second entry will be and I'd like to see it as soon as possible :) :) :)