Author Topic: WinAPE enhancements  (Read 22215 times)

0 Members and 1 Guest are viewing this topic.

Offline roudoudou

  • 6128 Plus
  • ******
  • Posts: 664
  • Country: fr
    • urban exploration
  • Liked: 923
  • Likes Given: 589
Re: WinAPE enhancements
« Reply #125 on: 17:17, 11 March 18 »
Hello,
I often use Winape to count the number of nops of my code and it seems there are errors in the timing of some instructions (I'm using v 2.0 beta 2 and have not seen more recent version on the website).
ld a,i => 1 nops instead of 3
add (ix+0) => 2 nops instead of 5

I guess it is the same for similar instructions


I'm using Winape 2.0b2


LD A,I counts 3 nops
ADD (IX+0) counts 5 nops


Can you isolate and reproduce the counting error with the integrated assembler?
use RASM, the best assembler ever made :p

I will survive

Offline krusty_benediction

  • CPC664
  • ***
  • Posts: 138
  • Country: fr
  • Liked: 102
  • Likes Given: 36
Re: WinAPE enhancements
« Reply #126 on: 18:46, 11 March 18 »


Yep I have the same bug using the code
    org 16384

    ld a, i
    add (ix+0)
To launch the prog I have manually modified PC to go in 0x4000.
Figure 1 gives the amount of nops (in the box T) for ld a,iFigure 2 for add (ix+0)
edit: the image has not been included; T box respectively gave 1 an 2

Offline roudoudou

  • 6128 Plus
  • ******
  • Posts: 664
  • Country: fr
    • urban exploration
  • Liked: 923
  • Likes Given: 589
Re: WinAPE enhancements
« Reply #127 on: 19:23, 11 March 18 »
To launch the prog I have manually modified PC to go in 0x4000.


I tried you way (setting PC) and my way (assembling the source below with F9) without wrong timing...


Code: [Select]
org #4000
run #4000
ld a,i ; press F5 on this line to enable breakpoint
add (ix+0)


My winape.exe is 2.443.776 bytes



EDIT: Even the W2A18 gives my the correct timings
« Last Edit: 19:26, 11 March 18 by roudoudou »
use RASM, the best assembler ever made :p

I will survive

Offline krusty_benediction

  • CPC664
  • ***
  • Posts: 138
  • Country: fr
  • Liked: 102
  • Likes Given: 36
Re: WinAPE enhancements
« Reply #128 on: 21:03, 11 March 18 »
My winape.exe is 2.443.776 bytes

My mistake: turbo mode was activated. I did not though it acted on the nop counter.By deactivating it, everything works ok
So there is no bug, just a faulty user....
Sorry for making you lost your time

Offline oss003

  • CPC464
  • **
  • Posts: 6
  • Country: nl
  • Liked: 5
  • Likes Given: 0
Re: WinAPE enhancements
« Reply #129 on: 12:43, 28 May 18 »
Hi guys,


I'm new to the forum and have a question about autostarting a program in WinAPE:

- I'm using WinAGD to create a game sourcefile called GAME.AGD
- The AGD compiler creates an assembler sourcefile called GAME.ASM with the command: COMPILECPC GAME
- To create a binary file called GAME.BIN I'm using PASMO with the command:PASMO GAME.ASM GAME.BIN
- Then I create a diskimage called NEWDISK.DSK and add the file GAME.BIN to it with CPCDiskXP: CPCDiskXP -File GAME.BIN -AddToNewDsk NEWDISK.DSK
- To autostart WinAPE with GAME.BIN, I type: WINAPE NEWDISK.DSK /A:GAME.BIN

Then WinAPE reports a disk error, am I doing something wrong?
Can somebody help me with this?
« Last Edit: 12:52, 28 May 18 by oss003 »

Offline Golem13

  • CPC464
  • **
  • Posts: 30
  • Country: fr
  • Liked: 76
  • Likes Given: 128
Re: WinAPE enhancements
« Reply #130 on: 16:01, 29 May 18 »
Hi guys,

I'm new to the forum and have a question about autostarting a program in WinAPE:

- I'm using WinAGD to create a game sourcefile called GAME.AGD
- The AGD compiler creates an assembler sourcefile called GAME.ASM with the command: COMPILECPC GAME
- To create a binary file called GAME.BIN I'm using PASMO with the command:PASMO GAME.ASM GAME.BIN
- Then I create a diskimage called NEWDISK.DSK and add the file GAME.BIN to it with CPCDiskXP: CPCDiskXP -File GAME.BIN -AddToNewDsk NEWDISK.DSK
- To autostart WinAPE with GAME.BIN, I type: WINAPE NEWDISK.DSK /A:GAME.BIN

Then WinAPE reports a disk error, am I doing something wrong?
Can somebody help me with this?
Is the amsdos header automaticaly added with the file when you execute the CPCDiskXP -File command ?

Offline oss003

  • CPC464
  • **
  • Posts: 6
  • Country: nl
  • Liked: 5
  • Likes Given: 0
Re: WinAPE enhancements
« Reply #131 on: 23:06, 29 May 18 »
Now it is, I added it to the CPCdiskXP command:CPCDiskXP -File GAME.BIN -AddAmsdosHeader 7D0 -AddToNewDsk NEWDISK.DSK
The strange thing is that if I manually install the disk image in drive A and run TEST.BIN, it works but not when I start WinAPE NEWDISK.DSK /A:TEST.BIN so the disk image is ok....
« Last Edit: 09:27, 30 May 18 by oss003 »

Offline oss003

  • CPC464
  • **
  • Posts: 6
  • Country: nl
  • Liked: 5
  • Likes Given: 0
Re: WinAPE enhancements
« Reply #132 on: 15:16, 30 May 18 »
Solved it ........ you have to add the complete path to the disk image name ...




Offline GUNHED

  • 6128 Plus
  • ******
  • Posts: 1.287
  • Country: de
  • Reincarnation of TFM
    • FutureOS - The quickest OS for the CPC and Plus
  • Liked: 720
  • Likes Given: 1564
Re: WinAPE enhancements
« Reply #133 on: 17:07, 01 June 18 »
It would be great if Mode 2 videos would be recorded correctly.  :)
http://futureos.de --> Get the revolutionary FutureOS (Recent update: 2019.08.07)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2019.08.14)

Offline krusty_benediction

  • CPC664
  • ***
  • Posts: 138
  • Country: fr
  • Liked: 102
  • Likes Given: 36
Re: WinAPE enhancements
« Reply #134 on: 19:47, 08 September 18 »
it would be great if
 - in the main window, Debug > Send to CPCWifiwould generate a v2 sna and send it to the cpcwifi. - in the disc editor window, Right clic on a file >  Run on CPCWifi would put the dsk on the cpcwifi and ask to run the selected file