{"id":2060,"date":"2013-09-09T14:05:00","date_gmt":"2013-09-09T05:05:00","guid":{"rendered":"http:\/\/oohito.com\/nqthm\/?p=2060"},"modified":"2013-09-09T14:05:00","modified_gmt":"2013-09-09T05:05:00","slug":"nestalk%e3%81%a7%e3%83%9e%e3%83%aa%e3%82%aa%e3%82%92%e5%8b%95%e3%81%8b%e3%81%99","status":"publish","type":"post","link":"https:\/\/oohito.com\/nqthm\/archives\/2060","title":{"rendered":"NesTalk\u3067\u30de\u30ea\u30aa\u3092\u52d5\u304b\u3059"},"content":{"rendered":"<p>Pharo\u4e0a\u3067\u30de\u30ea\u30aa\u304c\u52d5\u304f\u3068\u3044\u3046\u3002\u30a6\u30c1\u306e\u30bc\u30df\u3067\u306f\u30de\u30ea\u30aa\u30b2\u30fc\u30e0\u3082\u3069\u304d\u3092\u4f5c\u3063\u3066\u3044\u308b\u3060\u3051\u306b\u3001\u3069\u3093\u306a\u3082\u306e\u304b\u3092\u8a66\u3057\u3066\u307f\u305f\u3002<br \/>\n<a href=\"http:\/\/smalltalkhub.com\/#!\/~zeroflag\/NesTalk\">NesTalk<\/a>\u3068\u3044\u3046\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u305d\u308c\u3089\u3057\u3044\u3002\u30d1\u30c3\u30b1\u30fc\u30b8\u540d\u306e\u3068\u304a\u308aNES\u306e\u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u3092Pharo\u3067\u5b9f\u88c5\u3057\u305f\u3082\u306e\u306e\u3088\u3046\u3067\u3042\u308b\u3002<br \/>\n<a href=\"http:\/\/www.youtube.com\/watch?v=b0Z2QNFB7jE\">YouTube\u306e\u30d3\u30c7\u30aa<\/a>\u3092\u898b\u308b\u3068\u3061\u3083\u3093\u3068\u52d5\u3044\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308b\u3002<br \/>\n\u305d\u306e\u307e\u307e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u4e0d\u8db3\u3057\u3066\u3044\u308b\u65e8\u306e\u8b66\u544a\u304c\u51fa\u308b\u305f\u3081\u3001BabyMock\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089\u306f\u3058\u3081\u308b\u3002<\/p>\n<pre>MCHttpRepository\n    location: 'http:\/\/ss3.gemstone.com\/ss\/BabyMock'\n    user: ''\n    password: ''<\/pre>\n<p>\u4e0a\u8a18\u306e\u30ec\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u3001ConfigurationOfBabyMock\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002\u7d9a\u3044\u3066\u3001<\/p>\n<pre>ConfigurationOfBabyMock loadDevelopment.<\/pre>\n<p>\u306b\u3088\u3063\u3066BabyMock\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<br \/>\n\u6b21\u306b\u3001\u4ee5\u4e0b\u306e\u30ec\u30dd\u30b8\u30c8\u30ea\u304b\u3089NesTalk\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n<pre>MCHttpRepository\n\tlocation: 'http:\/\/smalltalkhub.com\/mc\/zeroflag\/NesTalk\/main'\n\tuser: ''\n\tpassword: ''<\/pre>\n<p>\u9069\u5f53\u306b\u30ed\u30e0\u30a4\u30e1\u30fc\u30b8\u3092\u5165\u624b\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8d77\u52d5\u3059\u308b\u3002\u30d1\u30b9\u540d\u306e\u6307\u5b9a\u306e\u3068\u3053\u308d\u306f\u9069\u5f53\u306b\u5909\u3048\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<\/p>\n<pre>nes := NesTalk new.\nnes insertCartridge: (NtCartridge romFile: (FileSystem disk workingDirectory \/ 'mario_bros' \/ 'Mario Bros.nes') pathString).\nnes powerOn.\n<\/pre>\n<p>\u7d42\u308f\u3063\u305f\u3089\u30d3\u30c7\u30aa\u306e\u901a\u308a\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3059\u308b\u3002<\/p>\n<pre>nes powerOff.<\/pre>\n<p>\u3046\u3061\u306e\u74b0\u5883(MacBookAir)\u3067\u306f\u30018\u30ad\u30fc\u3067\u5de6\u30010\u30ad\u30fc\u3067\u53f3\u306b\u79fb\u52d5\u3067\u304d\u305f\u304c\u3001\u305d\u306e\u4ed6\u306e\u30ad\u30fc\u304c\u3088\u304f\u308f\u304b\u3089\u306a\u3044\u305f\u3081\u30af\u30ea\u30a2\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u304b\u3063\u305f\u3002<br \/>\n\u3069\u3046\u3084\u3089\u30ad\u30fc\u30b3\u30fc\u30c9\u306e\u53d6\u308a\u65b9\u306e\u554f\u984c\u306e\u3088\u3046\u3067\u3001NesTalkWindow>>#handlesKeyDown:\u3068#handlesKeyUp:\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u3067\u64cd\u4f5c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002<\/p>\n<pre>handlesKeyDown: anEvent\n\tanEvent keyValue = 6 ifTrue: [joypad pressButtonAt: NtJoypad buttonA. ^ true].\n\tanEvent keyValue = 7 ifTrue: [joypad pressButtonAt: NtJoypad buttonB. ^ true].\n\tanEvent keyValue = 125 ifTrue: [joypad pressButtonAt: NtJoypad buttonDown. ^ true].\n\tanEvent keyValue = 126 ifTrue: [joypad pressButtonAt: NtJoypad buttonUp. ^ true].\n\tanEvent keyValue = 123 ifTrue: [joypad pressButtonAt: NtJoypad buttonLeft. ^ true].\n\tanEvent keyValue = 124 ifTrue: [joypad pressButtonAt: NtJoypad buttonRight. ^ true].\n\tanEvent keyValue = 36 ifTrue: [joypad pressButtonAt: NtJoypad buttonStart. ^ true].\n\tanEvent keyValue = 49 ifTrue: [joypad pressButtonAt: NtJoypad buttonSelect. ^ true].\n\t^ false<\/pre>\n<pre>handlesKeyUp: anEvent\n\tanEvent keyValue = 6 ifTrue: [joypad releaseButtonAt: NtJoypad buttonA. ^ true].\n\tanEvent keyValue = 7 ifTrue: [joypad releaseButtonAt: NtJoypad buttonB. ^ true].\n\tanEvent keyValue = 125 ifTrue: [joypad releaseButtonAt: NtJoypad buttonDown. ^ true].\n\tanEvent keyValue = 126 ifTrue: [joypad releaseButtonAt: NtJoypad buttonUp. ^ true].\n\tanEvent keyValue = 123 ifTrue: [joypad releaseButtonAt: NtJoypad buttonLeft. ^ true].\n\tanEvent keyValue = 124 ifTrue: [joypad releaseButtonAt: NtJoypad buttonRight. ^ true].\n\tanEvent keyValue = 36 ifTrue: [joypad releaseButtonAt: NtJoypad buttonStart. ^ true].\n\tanEvent keyValue = 49 ifTrue: [joypad releaseButtonAt: NtJoypad buttonSelect. ^ true].\n\t^ false<\/pre>\n<p>\u306a\u304a\u3001\u4e0a\u8a18\u306e\u5909\u66f4\u3092\u884c\u3048\u3070\u3001Mac\u4ee5\u5916\u306e\u74b0\u5883\u3067\u306f\u52d5\u304b\u306a\u3044\u3068\u601d\u308f\u308c\u308b\u306e\u3067\u6ce8\u610f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Pharo\u4e0a\u3067\u30de\u30ea\u30aa\u304c\u52d5\u304f\u3068\u3044\u3046\u3002\u30a6\u30c1\u306e\u30bc\u30df\u3067\u306f\u30de\u30ea\u30aa\u30b2\u30fc\u30e0\u3082\u3069\u304d\u3092\u4f5c\u3063\u3066\u3044\u308b\u3060\u3051\u306b\u3001\u3069\u3093\u306a\u3082\u306e\u304b\u3092\u8a66\u3057\u3066\u307f\u305f\u3002 NesTalk\u3068\u3044\u3046\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u305d\u308c\u3089\u3057\u3044\u3002\u30d1\u30c3\u30b1\u30fc\u30b8\u540d\u306e\u3068\u304a\u308aNES\u306e\u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u3092Pharo\u3067\u5b9f\u88c5\u3057\u305f&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38],"tags":[],"class_list":["post-2060","post","type-post","status-publish","format-standard","hentry","category-pharo"],"_links":{"self":[{"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/posts\/2060","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/comments?post=2060"}],"version-history":[{"count":0,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/posts\/2060\/revisions"}],"wp:attachment":[{"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/media?parent=2060"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/categories?post=2060"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/tags?post=2060"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}