Page 7 of 8 FirstFirst ... 5678 LastLast
Results 61 to 70 of 77

Thread: GBA + FPC = Possiblility???

  1. #61
    Anonymous
    Guest

    GBA + FPC = Possiblility???

    simple mode 3 asm example
    e.g. it does not work correctly as i only seem to be able to write to the whole screen on half of it?
    needs goldroad assembler to compile

    Code:
    ;; ------------------------------------------------------------
    ;;
    ;;	Basic asm example
    ;;
    @arm
    
    ;; ------------------------------------------------------------
    ;;	program entry point
    b	gba_main
    
    ;; ------------------------------------------------------------
    ;;
    ;;	variables
    video_buffer    @DCD 0x06000000    ; Screen memory address
    display_control @DCD 0x04000000    ; Display register
    color_white	@DCD 0x0000FFFF	   ; White
    mode3		@DCD 0x00000003	   ; mode 3 (240x160x16bit)
    bg		@DCD 0x00000400	   ; background 2
    x		@DCD 0x00000078    ; x (120)
    y               @DCD 0x00000050    ; y (80)
    width		@DCD 0x000000F0    ; screen width (240 px)
    
    
    gba_main:
    
    ;	set up screen
    	ldr r6,[display_control]   ; Setup VideoMode
    	ldr r1,[bg]
    	ldr r2,[mode3]
    	orr r1,r1,r2
    	str r1,[r6]
    	
    ;	test putpixel ( video_buffer[y *width + x]=color )			
    	ldr r0,[video_buffer]  	;address of VRAM
          	ldr r1,[color_white]
    	ldr r2,[y]			
    	ldr r3,[x]		
    	ldr r4,[width]
    	mul r5,r2,r4
    	add r6,r5,r3
    	str r1,[r0,r6]		;store r1 in r0 with offset r6		
    
    
    ;	loop forever
    loopforever:
    	b	loopforever

  2. #62

    GBA + FPC = Possiblility???

    first, sorry for the previous anonymous post.

    second i found a better crt0.s and makefile (at least it is smaller and easier to understand). take a look here: http://velvetfr.ath.cx/gba/tutorial/gba-tutorial1.html .

    thirdly in the first test pascal sources we should not use variables as variables should be placed in a specific place in gba memory. i believe that the program starts up in rom and so all variables end up being in rom?.
    http://3das.noeska.com - create adventure games without programming

  3. #63

    GBA + FPC = Possiblility???

    Noeska, I think that could be cool (at least for me ) if you put here a step-by-step-fpc-crossbuilding description
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

  4. #64

    GBA + FPC = Possiblility???

    I am still not able to link crt0.o in. However i was told that http://h-storm.tantos.homedns.org/gcc_arm.htm should hold and pascal compiler for arm (gnu pascal maybe) i am currently trying to download it, but it goes verry slooowly....)

    PS the nintendo ds came out in europe this weekend and i was able to get hold on one of them. And it plays verry nice indeed... so i am not bored during download
    http://3das.noeska.com - create adventure games without programming

  5. #65

    GBA + FPC = Possiblility???

    Quote Originally Posted by noeska
    I am still not able to ]http://h-storm.tantos.homedns.org/gcc_arm.htm[/url] should hold and pascal compiler for arm (gnu pascal maybe) i am currently trying to download it, but it goes verry slooowly....)
    Yes, I know this project. It's a gpc-based crosscompiler... I tried it, but I have some errors in linking time with rtl. After a lot of attempts, I decided to recompile from scratch, with the sources that you can download (sloooooowly :shock: ) from http://h-storm.tantos.homedns.org. I suggest you to read this thread.
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

  6. #66
    Anonymous
    Guest

    GBA + FPC = Possiblility???

    Quote Originally Posted by WILL
    You know... I think I can feel for the FPC Team on this one so with that I say ""

    Seriously though, ideas and suggestions like these belong in their own thread. It's rather inappropriate to just pop in a 'Hey, lets do this instead!' esp. after seeing that people have spent a great deal of time and effort in getting something to work and still seeking assistance and feedback on that work in question. And personally a bit annoying. I don't mind the idea, but it belongs in it's own thread so it can be discussed on it's own not in the middle of a conversation thats already starting to get heavily involved in code and other intricate things.
    Sorry, to be honest I thought it was relevant, since Pocket PC uses an ARM CPU.

  7. #67

    GBA + FPC = Possiblility???

    pocket pc and gba/ds are different things, they need different crt0 and different libraries. so they cannot be one project. personaly i was not bothered with your post.
    http://3das.noeska.com - create adventure games without programming

  8. #68
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    GBA + FPC = Possiblility???

    I apologize if I sounded a little bit testy in that post. It was not meant to be as harsh as it might have turned out, but we are really far along and Pocket PCs are completely different issue.

    Fact is that all we need to do now is figure out how we'll put the peices together I have collected an assembler and linker for the ARM for win32 (includes THUMB instructions aswell so FPC just needs to have it added to allow it) I'll try to upload and post a link to a self-made package of the files required.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  9. #69

    GBA + FPC = Possiblility???

    Now we have a freepascal compiler that can call the right linker and assembler, right? According with a previous post of FPK, now it's then time to make a rtl. Maybe it's a job for fpc team

    In the while, why don't organise a little team for maintaining/debugging purpose? :idea: AFAIR, FPK said that some fpc ports died because of lack of interest...

    Anyone interested? I'm available to do this iob
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

  10. #70

    GBA + FPC = Possiblility???

    WILL: did you also manage to link in crt0.o ?
    http://3das.noeska.com - create adventure games without programming

Page 7 of 8 FirstFirst ... 5678 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •