TweetFollow Us on Twitter

Animation Contest
Volume Number:1
Issue Number:5
Column Tag:Mousehole

Animation Contest

By David E. Smith

Last month we presented a complete application shell program in assembly that supported desk accessories, cut and past and “about” dialog boxes. But the application itself was rather boring, simply drawing nested boxes in the window. This month, we concentrate on the application itself. To eliminate confusion, we will use the simple shell program from the December issue of MacTutor that simply opens a window. This allows us to concentrate on the application, which is to animate a paddle and ball. Once we understand animation, we can combine our paddle and ball program with the shell program published last month to create a complete Mac game application. But first, the problem of animation.

Animation Contest

The Mousehole recently held a programming contest sponsored by MacTutor on the problem of moving a paddle with the mouse. “Brett” offered an interesting solution: “Have the user blink a lot and pretend!” Another interesting solution offered by “Lone Falcon” and “Chief Wizard” and expanded on by “The Jerk” was to make the cursor a paddle and constrain the cursor to a given rectangle. The trap call “_PinRect” can be used to change the rectangle in which the cursor is allowed to move. Or the rectangle can be poked into the global variable at $834 as mentioned by “The Jerk”. One problem with this solution is that of providing an “escape” for the cursor when you want to go to the menu bar to quit the game!

A simple technique to move the paddle is to draw the paddle rectange where the mouse now is and erase it from where the paddle used to be. The following example code shows how this might be done:


; Copy current paddle to old paddle

LEApaddle, A0
LEAoldpaddle, A1
MOVE.W  0(A0), 0(A1) ;top of rect
MOVE.W  2(A0), 2(A1) ;left of rect
MOVE.W  4(A0), 4(A1) ;bottom 
MOVE.W  6(A0), 6(A1) ;right

; Update paddle position from mouse

; _GetMouse trap previously called
; and mouse coord. saved in Mouse.
; Since paddle moves vertically, only
; the top and bottom coordinates need
; be updated.

LEAMouse, A0;get mouse
LEApaddle, A1  ;get paddle
MOVE.W  (A0), (A1) ;update top
MOVE.W  (A0), D0 ;get top
ADD.W Paddlelength, D0  ;add length
MOVE.W  D0, 4(A1);update bottom

; Erase old paddle position

PEAoldpaddle;push old pad.
_EraseRect;erase it

; Draw new paddle

PEApaddle ;push paddle
PEAPaddlepattern ;push fill pat.
_FillRect ;draw paddle

The Paddle Blinks!

The problem with the above solution, and hence the contest, is that the paddle will blink as it moves up and down. The problem is to improve on the above technique to eliminate the blinking. The reason for the blinking is shown in figure 1.

As shown in figure 1, the paddle blinks because we are erasing and drawing part of the paddle that overlaps, causing it to blink on and off. The solution is to determine the non-overlapping part and erase only that part. One way to do this is to replace the bottom of the old paddle with the top of the new paddle. Then the modified old paddle rectange would be only the cross-hatched area shown in figure 1 as the non-over-lapping part. But that only works for the paddle moving down. If the paddle moves up, then the opposite condition applies as shown in the following code segment:


; create difference rectange

LEApaddle, A0  ;new paddle
LEAoldpaddle, A1 ;old paddle
MOVE.W  (A0), D0 ;get new paddle
MOVE.W  (A1), D1 ;get old paddle
SUB.W D1, D0;top difference
BMIUP ;moving up?

DN: MOVE.W (A0), 4(A1)  ;update bottom
     JMP Eraseit

UP: MOVE.W 4(A0), (A1)  ;update top

Eraseit:  PEA oldpaddle


The above method works fine for a rectangular paddle moving up or down. But what about the ball? The winning solution to our animation contest was posted by “Don L.” in which he explained how regions could be used in a manner similar to what was done above for rectangles. Moreover, the toolbox has a special trap for finding the difference of two regions but does not have a similar trap for rectangles. The solution then is to form a union region of the old and new paddle regions, and then take the difference between the new paddle and this union region. The difference region is then erased and the paddle re-drawn. The result is a non-blinking paddle but using regions instead of rectangles.

In our example program we use “Don L.”’s method to move the ball as a region, and the rectangular method for moving the less complicated paddle rectangle. See the subroutine MOVEPADDLE for the rectangular implmentation discussed above and the subroutine MOVEBALL for the region solution submitted by Don. The tricky part is getting the regions properly defined with NewRgn, OpenRgn and CloseRgn.

Detecting Collisions

Once we have a moving paddle responding to the mouse, and a ball moving towards us, we need to detect if the ball has hit the paddle. A simple way to do this is to use the trap _RectInRgn, which tells if the given rectange intersects with the given region. We have used this trap by pushing the paddle rectange as the given rectange, and the ball region as the given region and tested the returning byte for true or false. If true, then the ball has “hit” the paddle, and we erase the ball and start a new one. If not, then the paddle has “missed” the ball and the game ends on a click of the mouse. Of course, in the final game, we really want the ball to “bounce” and move away from the paddle if there is a hit. We will leave the problem of bouncing for next month.


Our sample program includes all of the topics we’ve discussed this month in a complete program. To conserve space, none of the fancy user interface support we did last month is included. The program opens a window and displays our game field with a rectangular paddle, and launches a ball. If the user hits the ball, it disappears and another ball is launched. If the user misses the ball, the game stops until the button is pressed, at which point the finder is invoked. This is the basic animation required for a pinball type of game. Make note of the INITBALL routine that sets up the three temporary regions for use with the ball, and the MOVEBALL routine which erases the ball by only erasing the non-over-lapping region. Using these techniques, the paddle and ball should move smoothly over the shaded playing field.


The speed of the ball is determined by the increment used to update the ball region. The trap “_OffSetRgn” is used to incrementaly move the ball a small distance (dh, dv). In our example, dh is set at -1 and dv is zero, making the ball move horizontally one pixel left at a time. For a faster moving ball, the horiztonal increment should be doubled in a loop, until the user misses. Try this and see how fast the ball appears to move. Note that moving the paddle very quickly does produce an effect on the speed of the ball slightly.

In figure 2 we see the output from this month’s program. The white ball moves on a field of gray towards the black paddle. The white area was added in MacPaint to reduce the amount of gray, which does not print well.

Resources and Linker Files

The resource and linker files included are the minimum necessary to get an icon to pop up on the desktop. Our icon is shown at the top of the column header, and was produced using the Icon Converter Utility from issue 2 and “included” into our resource source code.

; ANIMATE (MacTutor 1-5)
; VERSION 27 FEB 1985
; (C) 1985 MacTutor by David E. Smith

;    Macro subset for Toolbox stuff

MACRO _InitGraf =  DC.W $A86E|
MACRO _InitWind =DC.W $A912| 
MACRO _NewWindow = DC.W $A913|
MACRO _setport = DC.W $A873|
MACRO _InitFont =DC.W $A8FE|
MACRO _InitMenu =DC.W $A930|
MACRO _InitDialog =DC.W $A97B|
MACRO _TEInit   =DC.W $A9CC|
MACRO _Initpack =         DC.W $A9E5|
MACRO _FlushEvents = DC.W $A032|
MACRO _InitCursor =DC.W $A850|
MACRO _GetNextEvent =DC.W $A970|
MACRO _FrameRect = DC.W $A8A1|
MACRO _BackPat = DC.W $A87C|
MACRO _EraseRect = DC.W $A8A3|
MACRO _NewRgn =  DC.W $A8D8|
MACRO _OpenRgn = DC.W $A8DA|
MACRO _CloseRgn =DC.W $A8DB|
MACRO _FrameRgn =  DC.W $A8D2|
MACRO _FrameRoundRect =   DC.W $A8B0|
MACRO _FillRect =DC.W $A8A5|
MACRO _FillRgn = DC.W $A8D6|
MACRO _BeginUpdate = DC.W $A922|
MACRO _EndUpdate = DC.W $A923|
MACRO _ClipRect =  DC.W $A87B|
MACRO _GetMouse =  DC.W $A972|
MACRO _CopyRgn = DC.W $A8DC|
MACRO _OffsetRgn = DC.W $A8E0|
MACRO _OffsetRect =  DC.W $A8A8|
MACRO _UnionRgn =  DC.W $A8E5|
MACRO _DiffRgn = DC.W $A8E6|
MACRO _MoveTo =  DC.W $A893|
MACRO _DrawChar =  DC.W $A883|
MACRO _RectInRgn = DC.W $A8E9|


XDEF  START           ; required for linker 
MouseDown equ  1
AllEvents equ  $0000FFFF
UpdateEvt equ  6 



PEA -4(A5);push qd global ptr
_InitGraf        ;init quickdraw global 
_InitFont        ; init font manager
_InitWind   ; init window manager
_InitMenu   ; init menu manager  
CLR.L -(SP) ; kill the restart 
_InitDialog ; init dialog manager
_TEInit ; init text edit (ROM) 
MOVE.W  #2,-(SP) ;  set-up
_Initpack ; init package mgr
MOVE.L  #AllEvents,D0    ;all events
_FlushEvents      ;flushed
_InitCursor      ; make cursor the arrow

CLR.L -(SP)          ;return window ptr
CLR.L -(SP)          ;window record ptr.
PEA WBOUNDS               ;window rectangle 
PEA WINDTITLE              ; window title
MOVE.W #$100,-(SP)   ; true = visible 
MOVE.W #0,-(SP)           ; doc type window
MOVE.L #-1,-(SP)          ; window in front
MOVE.W #$100,-(SP)   ; true=closebox
MOVE.L #0, -(SP)         ; reference value 
_NewWindow                ; make new window

LEA WPOINTER,A0         ; copy window ptr 
MOVE.L (SP),(A0)        ; to stacksave
_setport                  ;current window



; --EVENT LOOP ------------


JSRDOGAME ;move paddle with mouse

CLR-(SP);returned event 
MOVE  #AllEvents,-(SP)    ;mask all events
PEAEventRecord   ; event record block
_GetNextEvent    ;go check the mouse 
MOVE  (SP)+,D0   ;get event result 
CMP#0,D0;if 0 then no event 
BEQGetEvent ;loop until it happens

MOVE  What,D0    ;what to do!
CMP#MouseDown,D0     ; button down?
BEQEXIT ;yes so exit...
CMP#UpdateEvt, D0;is it an update event?
BEQUPDATE ;yes, so do it
JMP    GetEvent  ;get next event


; window needs refreshing

MOVE.L  WPOINTER,-(SP)  ;push window ptr
MOVE.L  WPOINTER,-(SP)  ;push our window ptr.
_SetPort;restore our port
 ;least an update draw in
 ;the wrong window.
BSRQDSTUFF;re-draw everything
JMP   GetEvent

; ---------- END OF MAIN ----------

;     INIT GAME VARIABLES,A0 ;set-up appl. window 
MOVE.W #5,    (A0) ; TOP
MOVE.W #5,   2(A0) ;LEFT
MOVE.W #245, 4(A0) ;BOTTOM
MOVE.W #500, 6(A0) ;RIGHT

_ClipRect ;set clip region

LEAPaddle(A5),A0 ;set-up paddle
MOVE.W #6,    (A0) ;TOP
MOVE.W #8,   2(A0) ;LEFT
MOVE.W #40, 4(A0);BOTTOM
MOVE.W #15, 6(A0);RIGHT

LEAPaddlelength(A5),A1  ;update paddle bottom
MOVE.W  (A0),D0
MOVE.W  4(A0),D1
SUB.W   D0,D1
MOVE.W  D1, (A1)

;  set up regions for ball

_NewRgn ;set new region
LEABallrgn(A5), A1 ;make ball a region
MOVE.L  (SP)+,(A1) ;save handle in ballrgn

_NewRgn ;set new region
LEAoldballrgn(A5), A1;make old ball a region
MOVE.L  (SP)+,(A1) ;save handle in oldballrg 

_NewRgn ;set new region
LEAunionrgn(A5), A1;make union ball a region
MOVE.L  (SP)+,(A1) ;save handle in unionrgn

JSRINITBALL ;set-up ball


; ------   init ball subroutine ------


LEABall(A5),A0 ;set-up ball rect
MOVE.W #100,    (A0) ;TOP
MOVE.W #300,   2(A0) ;LEFT
MOVE.W #109, 4(A0) ;BOTTOM
MOVE.W #309, 6(A0) ;RIGHT

LEABallwide(A5),A0 ;set up rounded corners
MOVE.W #6, (A0)
LEABallhigh(A5), A0
MOVE.W #6, (A0)

_OpenRgn;init ball region
MOVE.W  Ballwide(A5),-(SP)
MOVE.W  Ballhigh(A5),-(SP)
MOVE.L  Ballrgn(A5),A0
MOVE.L  A0,-(SP)

_OpenRgn;init oldball region
MOVE.W  Ballwide(A5),-(SP)
MOVE.W  Ballhigh(A5),-(SP)
MOVE.L  oldballrgn(A5),A0
MOVE.L   A0,-(SP)

_OpenRgn;init union region
MOVE.W  Ballwide(A5),-(SP)
MOVE.W  Ballhigh(A5),-(SP)
MOVE.L  unionrgn(A5),A0
MOVE.L  A0,-(SP)


; update game field during null event

LEAmouse(A5),A0  ;current mouse
LEAoldmouse(A5),A1 ;old mouse;find where mouse is
MOVE.W  (A0),D0  ;new mouse
MOVE.W  (A1),D1  ;old mouse
CMPD1,D0;has y mouse changed?
BEQstatck ;no, don’t update paddle
 ;yes, make new paddle
JSRMOVEPADDLE    ;update paddle position

JSRMOVEBALL ;advance ball
JSRBOUNCE ;change ball direction



;      copy paddle position to oldpaddle

LEApaddle(A5), A0
LEAoldpaddle(A5), A1
MOVE.W  (A0), (A1) ;top
MOVE.W  2(A0), 2(A1) ;left
MOVE.W  4(A0), 4(A1) ;bottom
MOVE.W  6(A0), 6(A1) ;right

; update paddle position

LEAmouse(A5),A0  ;get current mouse position
LEApaddle(A5),A1 ;update paddle position
MOVE.W  (A0), (A1) ;update TOP
MOVE.W  (A0),D0  ;calculate BOTTOM
ADD.W Paddlelength(A5),D0
MOVE.W  D0,4(A1) ;update BOTTOM

;   draw new paddle


;    calculate difference rectangle

LEApaddle(A5),A0 ;current paddle
LEAoldpaddle(A5),A1;old paddle
CLR.L   D0
CLR.L   D1
MOVE.W  (A0), D0
MOVE.W  (A1),D1
LEApaddle(A5), A0
LEAoldpaddle(A5), A1
SUB.W D1, D0
dn:   MOVE.W(A0), 4(A1) ;moved down
      BRA wipeout
up: MOVE.W4(A0), (A1);moved up
    BRA wipeout

; update mouse

LEAmouse(A5),A0  ;current mouse
LEAoldmouse(A5),A1 ;old mouse
MOVE.L  (A0),(A1);update old mouse

; ----      MOVE BALL SUBROUTINE ------

;      copy Ballrgn to oldballrgn

MOVE.L  Ballrgn(A5),A0
MOVE.L  A0,-(SP)
MOVE.L  oldballrgn(A5),A0
MOVE.L  A0,-(SP)

; move ball region

MOVE.L  Ballrgn(A5),A0
MOVE.L  A0,-(SP)
MOVE.W  dh,-(SP) ;horiz. increment
MOVE.W  dv, -(SP);vert. increment
_OffsetRgn;offset ball rgn

;   draw new BALL

MOVE.L  Ballrgn(A5),A0
MOVE.L  A0,-(SP)

; erase old ball difference

MOVE.L  Ballrgn(A5),A0
MOVE.L  oldballrgn(A5),A1
MOVE.L  unionrgn(A5),A3
MOVE.L  A0,-(SP)
MOVE.L  A1,-(SP)
MOVE.L  A3,-(SP)

MOVE.L  unionrgn(A5),A0
MOVE.L  Ballrgn(A5),A1
MOVE.L  unionrgn(A5),A3
MOVE.L  A0,-(SP)
MOVE.L  A1,-(SP)
MOVE.L  A3,-(SP)

MOVE.L  unionrgn(A5),A0
MOVE.L  A0,-(SP)


; ---------- BOUNCE BALL --------

PEAPaddle(A5)    ;push rect
MOVE.L  Ballrgn(A5), A0
MOVE.L  A0, -(SP);push rgn handle
MOVE.B  (SP)+, D0
CMP#0, D0 ;false?

MOVE.L  Ballrgn(A5),A0  ;no...
MOVE.L  A0,-(SP) ;erase ball
JSR INITBALL;start new ball





PEA   ;frame rectangle
_FrameRect;draw game rectangle



; ---- RETURN TO FINDER --------

EXIT:        RTS      ; return to finder

; ----LOCAL DATA AREA ----------

WPOINTER: DC.L     0      ;store window pt
WBOUNDS:DC.W   40  ;rectangle top 
 DC.W    2;left
 DC.W    335;bottom
 DC.W    508;right
WINDTITLE:     DC.B    24        ; title length
                 DC.B    ‘BALL AND PADDLE EXAMPLE ‘,0      

 What:  DC.W     0 ; what event
 Message: DC.L     0 ; ptr. to msg
 When:  DC.L     0
 Point:   DC.L     0
 Modify:  DC.W     0

BackPat0: DC.L $AA55AA55  ;playing field
 DC.L $AA55AA55

 DC.L $00000000

dv:DC.W 0
; ------   APPLICATION GLOBALS  ---- DS.W1 ;frame size storage
 DS.W 1 ;for game field rectangle
 DS.W 1
 DS.W 1
Paddle: DS.W1  ;frame size storage
 DS.W 1 ;for paddle rectangle
 DS.W 1
 DS.W 1
oldpaddle:DS.W 1 ;frame size storage
 DS.W 1 ;for paddle rectangle
 DS.W 1
 DS.W 1
Paddlelength:  DS.W1
Ball:   DS.W1  ;frame size storage
 DS.W 1 ;for ball rectangle
 DS.W 1
 DS.W 1 
Ballwide: DS.W 1
Ballhigh: DS.W 1

Ballrgn:DS.L1  ;ball region handle
oldballrgn: DS.L 1 ;old ball region handle
unionrgn: DS.L 1 ;temp region

mouse:  DS.L1
oldmouse: DS.L 1

; ------   END OF PROGRAM -------

/OUTPUT Animate Example




; resource file for the animate example
; created using the assembler
; signiture is creator tag 

 DC.B 30, ‘animate example--Feb. 27, 1985’

    DC.W 0,128 ;MAP 0 TO ICON 128
    DC.W 0,128 ;MAP 0 TO FREF 128

 DC.B ‘APPL’, 0, 0, 0


INCLUDE animate.icon.asm


Community Search:
MacTech Search:

Software Updates via MacUpdate

Check out the new Pirate Attack update i...
Love pirates and board games? Well, you'll love the new Pirate Attack themed update that just launched in Game of Dice. It adds a bunch of new content themed around pirates, like an all new event map based on a pirate ship which revamps the toll... | Read more »
Splash Cars guide - How to paint the tow...
Splash Cars is an arcade driving game that feels like a hybrid between Dawn of the Plow and Splatoon. In it, you'll need to drive a car around to repaint areas of a town that have lost all of their color. Check out these tips to help you perform... | Read more »
The best video player on mobile
We all know the stock video player on iOS is not particularly convenient, primarily because it asks us to hook a device up to iTunes to sync video in a world that has things like Netflix. [Read more] | Read more »
Four apps to help improve your Super Bow...
Super Bowl Sunday is upon us, and whether you’re a Panthers or a Broncos fan you’re no doubt gearing up for it. [Read more] | Read more »
LooperSonic (Music)
LooperSonic 1.0 Device: iOS Universal Category: Music Price: $4.99, Version: 1.0 (iTunes) Description: LooperSonic is a multi-track audio looper and recorder that will take your loops to the next level. Use it like a loop pedal to... | Read more »
Space Grunts guide - How to survive
Space Grunts is a fast-paced roguelike from popular iOS developer, Orange Pixel. While it taps into many of the typical roguelike sensibilities, you might still find yourself caught out by a few things. We delved further to find you some helpful... | Read more »
Dreii guide - How to play well with othe...
Dreii is a rather stylish and wonderful puzzle game that’s reminiscent of cooperative games like Journey. If that sounds immensely appealing, then you should immediately get cracking and give it a whirl. We can offer you some tips and tricks on... | Read more »
Kill the Plumber World guide - How to ou...
You already know how to hop around like Mario, but do you know how to defeat him? Those are your marching orders in Kill the Plumber, and it's not always as easy as it looks. Here are some tips to get you started. This is not a seasoned platform... | Read more »
Planar Conquest (Games)
Planar Conquest 1.0 Device: iOS Universal Category: Games Price: $12.99, Version: 1.0 (iTunes) Description: IMPORTANT: Planar Conquest is compatible only with iPad 3 & newer devices, iPhone 5 & newer. It’s NOT compatible with... | Read more »
We talk to Cheetah Mobile about its plan...
Piano Tiles 2 is a fast-paced rhythm action high score chaser out now on iOS and Android. You have to tap a series of black tiles that appear on the screen in time to the music, being careful not to accidentally hit anywhere else. Do that and it's... | Read more »

Price Scanner via

BookBook For iPad Pro Coming Soon
The iPad Pro is a device unlike any other, and with Apple Pencil, it’s the ideal portable sketchpad: all that’s missing is the modern easel and portfolio to go. TwelveSouth’s BookBook for iPad Pro... Read more
12-inch 1.2GHz Silver Retina MacBook on sale...
B&H Photo has the 12″ 1.2GHz Silver Retina MacBook on sale for $1399 including free shipping plus NY sales tax only. Their price is $200 off MSRP, and it’s the lowest price for this model from... Read more
iPads on sale at Target: $100 off iPad Air 2,...
Target has WiFi iPad Air 2s and iPad mini 4s on sale for up to $100 off MSRP on their online store for a limited time. Choose free shipping or free local store pickup (if available). Sale prices for... Read more
Target offers Apple Watch for $100 off MSRP
Target has Apple Watches on sale for $100 for a limited time. Choose free shipping or free local store pickup (if available). Sale prices for online orders only, in-store prices may vary: - Apple... Read more
Apple refurbished 2014 13-inch Retina MacBook...
Apple has Certified Refurbished 2014 13″ Retina MacBook Pros available for up to $400 off original MSRP, starting at $979. An Apple one-year warranty is included with each model, and shipping is free... Read more
Macs available for up to $300 off MSRP, $20 o...
Purchase a new Mac or iPad using Apple’s Education Store and take up to $300 off MSRP. All teachers, students, and staff of any educational institution qualify for the discount. Shipping is free, and... Read more
Watch Super Bowl 50 Live On Your iPad For Fre...
Watch Super Bowl 50 LIVE on the CBS Sports app for iPad and Apple TV. Get the app and then tune in Sunday, February 7, 2016 at 6:30 PM ET to catch every moment of the big game. The CBS Sports app is... Read more
Two-thirds Of All Smart Watches Shipped In 20...
Apple dominated the smart watch market in 2015, accounting for over 12 million units and two-thirds of all shipments according to Canalys market research analysts’ estimates. Samsung returned to... Read more
12-inch 1.2GHz Retina MacBooks on sale for up...
B&H Photo has 12″ 1.2GHz Retina MacBooks on sale for $180 off MSRP. Shipping is free, and B&H charges NY tax only: - 12″ 1.2GHz Gray Retina MacBook: $1499 $100 off MSRP - 12″ 1.2GHz Silver... Read more
12-inch 1.1GHz Gray Retina MacBook on sale fo...
B&H Photo has the 12″ 1.1GHz Gray Retina MacBook on sale for $1199 including free shipping plus NY sales tax only. Their price is $100 off MSRP, and it’s the lowest price available for this model... Read more

Jobs Board

*Apple* Retail - Multiple Positions (US) - A...
Sales Specialist - Retail Customer Service and Sales Transform Apple Store visitors into loyal Apple customers. When customers enter the store, you're also the Read more
*Apple* Retail - Multiple Positions (US) - A...
Job Description: Sales Specialist - Retail Customer Service and Sales Transform Apple Store visitors into loyal Apple customers. When customers enter the store, Read more
*Apple* Subject Matter Expert - Experis (Uni...
This position is for an Apple Subject Matter Expert to assist in developing the architecture, support and services for integration of Apple devices into the domain. Read more
*Apple* Macintosh OSX - Net2Source Inc. (Uni...
…: * Work Authorization : * Contact Number(Best time to reach you) : Skills : Apple Macintosh OSX Location : New York, New York. Duartion : 6+ Months The associate would Read more
Computer Operations Technician ll - *Apple*...
# Web Announcement** Apple Technical Liaison**The George Mason University, Information Technology Services (ITS), Technology Support Services, Desktop Support Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.